How to enable framebuffer console and monitoring mode? - LG Optimus Black

I`d like to know how to enable framebuffer console and monitoring mode support?Here is source code of the cyanogenmod kernel. And i`d like to know how to move rootfs to sdcard so android will boot from it.

suleymanovemil8 said:
I`d like to know how to enable framebuffer console and monitoring mode support?Here is source code of the cyanogenmod kernel. And i`d like to know how to move rootfs to sdcard so android will boot from it.
Click to expand...
Click to collapse
That question makes you to look for the cid team.
Sent from my LG-P970 using Tapatalk 2

Related

[Q] Image modifications.. need help.. :)

Hi experts.. sorry for the totally noob questions..
1) is it possible after i extract any "boot.img" from any kernels built, i can edit those .rc files and then rebuild it?
2) to edit one's cpu properties (freq, voltages n so on) can i just edit .rc files or i need to build from source? If source, which folder/files i need to start?
Thanks.. :[email protected]#$%&*
Sent from my LG-P990 using XDA App
Yep, this is most certainly the right section, namely development. Questions definitely don't belong into the QUESTIONS AND ANSWERS section. But go on.
To make my /system, /data and /cache formatted ext4, just edit "init.tegra.rc", "init.rc" or both? Notice at init.rc, there are line mention yaffs2, then at init.tegra.rc, ext3? Which 1 should i edit?
Sorry guys.. just that i'm a slow learner.. (
Sent from my LG-P990 using XDA App
ghadap said:
To make my /system, /data and /cache formatted ext4, just edit "init.tegra.rc", "init.rc" or both? Notice at init.rc, there are line mention yaffs2, then at init.tegra.rc, ext3? Which 1 should i edit?
Sorry guys.. just that i'm a slow learner.. (
Sent from my LG-P990 using XDA App
Click to expand...
Click to collapse
Hello,
I haven't tried modifying ROMs. But my suggestion would be to get an ext4 ROM and study how its scripts work
Ive tried view all the sources, but i can detect which file/folders i need to edit.. as example, i know to create my own freq, i need to look a file at /driver/freq/freq.c... but which line i need to focus?
Sent from my Cyanogenmod 7.1.0
ghadap said:
Ive tried view all the sources, but i can detect which file/folders i need to edit.. as example, i know to create my own freq, i need to look a file at /driver/freq/freq.c... but which line i need to focus?
Sent from my Cyanogenmod 7.1.0
Click to expand...
Click to collapse
I honestly have no idea. But there are a lot of devs here who have experience with kernel source. Try maintainers from cm7, paul (modaco), spica, or topogigi.
Hopefully they read this thread @ my pm.. like to learn..
Sent from my Cyanogenmod 7.1.0

[WIP] Ubuntu on G9 v0.2

Hey guys,
let's try to get Ubuntu working on our tablets.
adbd is included in the images, so you have a root shell over adb
SDE required.
Extract all.
adb push ubu1204.img.ext4 /data/media/
Reboot - SDE - Flash kernel and initrd
Multiboot menu 0.3 - ubu1204.img.ext4 (from the menu to start the ICS, such as "archos.ext4")
Done.
(passwords: ubuntu - ubuntu root - root)
Working:
- Booting on 80G9 and 101G9
- Touchscreen (touchpad mode)
- Keyboard via OTG cable
- Mass storage on rear USB-prt
- SD card automount on plugin
- LCD backlight brightness control via command line, lol
- Networking (incl. WiFi)
Changelog:
0.2:
- Made by szanalmas
- Upgrade to 12.04
- Kernel 3.0.8+
- Working WiFi (try adding a dummy network, then it works), Sound
- Switched from Unity to Gnome Classic
0.1:
- Initial build.
Todo:
- Bluetooth
- Hardware acceleration
- Camera
- Battery
Download v0.2:
Image: Download
SHA: View
Kernel: Download
SHA: View
Download v0.1:
sysroot_ice.img http://hotfile.com/dl/145362762/7e3f710/ubuntu.img.rar.html MD5:2d9dbc775820db5dda281df84ab7db64
initramfs.cpio.gz http://hotfile.com/dl/145366156/8c56f1d/initramfs.cpio.gz.html MD5:150fc53be381ac3247d44226061868af
zImage http://hotfile.com/dl/145366657/34f75c7/zImage.html MD5:4de6efeec193aa5809f2ff871a96ef2d
Thanks to
- szanalmas for upgrade to 12.04, kernel 3.0.8+, WiFi
- letama for provided kernel + initramfs
- trevd for testing on 101G9 and reuploading stuff
- Adam / OPPO
great a1Pha !
but i would like ubuntu and ICE.. (lol)
This can be made. I'll have to check the initramfs tomorrow
Upload done, post edited - have fun @ testing
a1Pha said:
This can be made. I'll have to check the initramfs tomorrow
Click to expand...
Click to collapse
thx , i testing that this morning
wow. I was going to get working on this when my tablet arrives but you beat me to the race.. maybe we can work on it together in the future
Could you post some screenshots of ubuntu on g9?
dual boot
how would you go about dual bopoting i want to get into the whole programming of it just need a pointer to the start of things
TjaXanK said:
wow. I was going to get working on this when my tablet arrives but you beat me to the race.. maybe we can work on it together in the future
Click to expand...
Click to collapse
For sure - just contact me when your tablet has arrived
142857 said:
Could you post some screenshots of ubuntu on g9?
Click to expand...
Click to collapse
Okay, I have edited the first post and added some links to screenshots.
twinnaz said:
how would you go about dual bopoting i want to get into the whole programming of it just need a pointer to the start of things
Click to expand...
Click to collapse
Sorry, I don't understand your question :S
how would i implement a dualboot
You can take the initramfs.cpio.gz posted by letama in another thread (look at the link to Ice Cream Sandwich - the file is inside the archive you download).
Then extract it and have look at the scripts, which are provided there.
Basically you have to get the system to ask you, from which filesystem image you want to boot
yep! you need to install SDE, restart your device, go in the developer menu and flash the initramfs.cpio.gz that letama posted in the ICS post, atleast that's how it was in the Gen8... by the looks of it the SDE menu is the same. Hope I helped
i wait the multi OS install
2.3
4.0
Ubuntu
Nice, I'll give this a go now.
Edit:
Works on the 101G9.
Keyboard Functions through OTG/Host Cable.
USB Mass Storage (Pen Drive) Functions on 3G Stick Port
Not tried anything else yet.
Are you using a lot of the same kernel objects which android is using?
Excellent Work.
alright thanks
trevd said:
Works on the 101G9.
Keyboard Functions through OTG/Host Cable.
USB Mass Storage (Pen Drive) Functions on 3G Stick Port
Are you using a lot of the same kernel objects which android is using?
Click to expand...
Click to collapse
Thank you very much, and also thanks for testing
I am using initramfs + kernel + modules provided by letama for his ICS-build.
By the way - I will upload a new build this night.
I have managed to get basic network functionality via adb + usbcable, so I have upgraded all packages and installed a touchscreen keyboard.
In the new build the LCD backlight brightness is now set to max on boot.
I also have added a user with sudo-permissions, so now settings are saved on reboot (not like in 0.1 where guest sessions were created).
Oh, and I will change the filesystem type from ext3 to ext4.
Still no real progress on WiFi or sound
P.S.: New build will support choosing between booting ICS and Ubuntu
//edit: sry guys, got some problems with my internet provider. i get reconnects every 30 seconds. i hope they get it fixed till tomorrow... sorry for delay, i'm going to upload the stuff tomorrow..
a1Pha said:
Thank you very much, and also thanks for testing
I am using initramfs + kernel + modules provided by letama for his ICS-build.
Click to expand...
Click to collapse
Might be worth giving it a go with a version 3 kernel, you may get some free driver support. although I could be talking nonsense
a1Pha said:
By the way - I will upload a new build this night.
I have managed to get basic network functionality via adb + usbcable, so I have upgraded all packages and installed a touchscreen keyboard.
In the new build the LCD backlight brightness is now set to max on boot.
I also have added a user with sudo-permissions, so now settings are saved on reboot (not like in 0.1 where guest sessions were created).
Oh, and I will change the filesystem type from ext3 to ext4.
Click to expand...
Click to collapse
I activated the root login with my own password from adb and the touchscreen keyboard worked straight away on the 101. It must come with the the drivers preinstalled. I think letma's' done some work into the difference between the 80 and 101.
a1Pha said:
Still no real progress on WiFi or sound
Click to expand...
Click to collapse
I've been playing with this all night. I think the drivers have been integrated in the main linux kernel so you should be able to build your own.
They could some prebuilt binaries out there as the OMAP4 board seems quite a popular board.
Also you might have some joy with this http://dev.omapzoom.org/pub/scm/integration/
It's all Good!
Archos 101 G9, HTC Sensation, HTC Hero
Hi Guys,
A1Pha, sorry, didn't have time to test your build, too much stuff going on...
Here is a quick feedback on wifi that may help you:
In android, here is how it works (from memory, don't have my laptop to check)
1) you need to create a nvs file corresponding to tablet, check android init.rc for the way it's done there...
2) Then when you do need wifi, insmod the tiwlan.ko
3) Then, load firmware (check wlan_loader in android init.rc, you should be able to reuse the command) and nvs. If all goes well up to here, you should be able to do ifconfig tiwlan0 and it should have a mac address.
4) Then start wpa_supplicant. You need the appropriate version of wpa_supplicant, 0.8 I think in android source code. You may want to build source code from android source with the appropriate options to remove android extensions.
Again, this is from memory, I'll try to give you more details tomorrow.
Regarding audio, this is mostly alsa so it shouldn't be impossible, you should be able to re-use the configuration found in archos rootfs in /usr/ sub directories. You have to insmod the proper modules though.
Best,
LeTama
Suggestion for the sound, try running the alsamixer and playing with that... worked in debian...
letama said:
Hi Guys,
A1Pha, sorry, didn't have time to test your build, too much stuff going on...
Here is a quick feedback on wifi that may help you:
In android, here is how it works (from memory, don't have my laptop to check)
.....
Click to expand...
Click to collapse
ahh. Thanks for that letama , You're a fountain of knowledge.
I'll give it a try during the holidays.
I was playing about with wpa_supplicant and android kernel drivers. I didn't have the right magic ) and my kernel knowledge is still in it's early stages (only been on the linux desktop for 1 year).

Q: atrix fbcon

Has anyone got the fbcon framebuffer console to work on the Atrix ?
I have sucessfully compiled an atrix tegra kernel from source and booted on my 4.5.91 (2.3.4) Atrix.
I have 'sucessfully' set the frame buffer console and enabled fbcon via menu config.
These were compiled as builtin modules and built a zImage without any issues.
However, the new kernel fails to boot where the 'default .config' built kernel will boot.
I was hoping to get lucky and override the /dev/graphics/fb0 limitation on these devices. I need the framebuffer to run a framebuffer applictaion proir to starting up android after the kernel boots. I have the capability working on the nexus one just having trouble porting to the Atrix.
Does anyone know a simple kernel trick to fix the framebuffer?
Thanks in advance.
Maybe this will be of help
https://github.com/epsylon3/kernel-MB860/commit/17d7beda6baf7fdee731863ef0ae03785f30eb7b
turl1 said:
Maybe this will be of help
https://github.com/epsylon3/kernel-MB860/commit/17d7beda6baf7fdee731863ef0ae03785f30eb7b
Click to expand...
Click to collapse
It sure was. Thank you very much for the shove in the right direction.
I grabbed that git tree and configured tegra_olympus_cm7_def_config and set that switch. So I can read the framebuffer but have yet to be able to display what I right. Thanks again.
SOLVED
turl1 said:
Maybe this will be of help
Click to expand...
Click to collapse
Thanks again turl1.
there was one more hitch where you actually have to swap buffers using an ioctl found in system/device/motorolo/olympus/recovery/graphics.c:
FBIOPUT_VSCREENINFO

Compiling kernel modules...

Hey all. So I was looking at this cpu frequency governor for the razr:
http://forum.xda-developers.com/showthread.php?t=1367255
I was wondering how I could get this working on our devices, so, just for curiosity's sake, I copied it to the phone and ran insmod on it. It did a quick cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors and found the new governor listed, so I opened up SetCPU and set it as the governor. cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor told me, however, that I was still on mot_hotplug, so I switched to ondemand and then back to the eprj governor... still told me I'm on ondemand.
I figure that the razr's and droid 3's kernel modules are not binary-compatible, so I'm gonna need to recompile the module. How do I go about doing this?
Thanks.
-Zane Kaminski
I understand what your getting at but we can't flash kernels best you can do is port kernel modules
Sent from my XT862 using XDA
saintlikesniper said:
I understand what your getting at but we can't flash kernels best you can do is port kernel modules
Sent from my XT862 using XDA
Click to expand...
Click to collapse
Yeah... I wanna compile this module for the Droid 3.
ZaneKaminski said:
Yeah... I wanna compile this module for the Droid 3.
Click to expand...
Click to collapse
The source for the current 890 kernel is on Sourceforge.net under the Bionic's GPL software page.
Sent from my DROID3 using XDA
Would it be possible to build a kernel module to add loop device support? Would like to be able to chroot Ubuntu.
Sent from my DROID3 using Tapatalk 2
Q9Nap said:
Would it be possible to build a kernel module to add loop device support? Would like to be able to chroot Ubuntu.
Sent from my DROID3 using Tapatalk 2
Click to expand...
Click to collapse
loop devices are already supported. If your using linux installer from the market just ignore the warinngs. To manully mount a loop device.
Code:
# mount loop.img directory
If for some reason that doesn't work use losetup.
Code:
# losetup /dev/block/loop7 loop.img
# mount -t auto /dev/block/loop7 directory
eww245 said:
loop devices are already supported. If your using linux installer from the market just ignore the warinngs. To manully mount a loop device.
Code:
# mount loop.img directory
If for some reason that doesn't work use losetup.
Code:
# losetup /dev/block/loop7 loop.img
# mount -t auto /dev/block/loop7 directory
Click to expand...
Click to collapse
Still have questions about getting Linux installer working, started a thread here
http://forum.xda-developers.com/showthread.php?p=24855920
To avoid clogging up this thread any further, any help would be appreciated.
Sent from my DROID3 using Tapatalk 2
i'm in the process of setting up a build environment for kernel modules and have the 5.6.890 kernel source. couple of questions:
does anyone have links to any good info on how to build android kernel modules? google isn't being very helpful.
would it be possible to get modules built with the 5.6.890 source working with the 5.7.906 kernel?
thanks in advance

Ubuntu Touch not booting

Hi to all, this time I'm trying to port Ubuntu Touch, I have built device-specific zip file for Ubuntu Touch but after installing it and daily preinstalled Ubuntu armhf image from http://cdimage.ubuntu.com/ doesn't boot, no black screen, only Galaxy bootscreen, in kernel's defconfig I've done all modifications listed on https://wiki.ubuntu.com/Touch/Porting and compiled with brunch janice
Hi guys any one working on this?
Sent from my GT-I9070 using xda app-developers app
No logs?
Sent from my GT-I9070 using Tapatalk 4
Shaaan said:
No logs?
Sent from my GT-I9070 using Tapatalk 4
Click to expand...
Click to collapse
ADB not working in bootscreen, last_kmsg is useless because to enable ADB I have to enter in recovery so the file is overwritten. With device-specific package the recovery's graphic changes according to Ubuntu, and flashing a CM kernel boots the Android part (I can see CM bootanimation, but OS obviously doesn't load). Maybe the problem is in the kernel's ramdisk, I have to add something to init.rc or change BOOTCLASSPATH to boot Ubuntu?
Any updates?
Sent from my GT-I9070 using xda app-developers app
I don't think the project will be succesful.As you know we even can't get a proper AOSP ROM and Cyanogens are unofficial and we should hope another OS ?
But of course I'm not hate just saying; maybe my knowledge would be false, thanks for work.
Darkness and Hope said:
I don't think the project will be succesful.As you know we even can't get a proper AOSP ROM and Cyanogens are unofficial and we should hope another OS ?
But of course I'm not hate just saying; maybe my knowledge would be false, thanks for work.
Click to expand...
Click to collapse
This project is just for test, the OS is based on CM kernel, so it should be boot if all is done correctly, I think that the error is in the kernel's ramdisk
Inviato dal mio GT-I9070
Are there any realistic chances that there will ever be a Ubuntu Touch OS for this phone? I mean i certainly do not ask for a ETA. But i would love to have a Ubuntu Touch on my phone. If this is not possible then Ohhhkehhh no problem. So will there any further progress on this or not?
Finally something moves! I recompiled again with other changes, now after installing device-specific zip file and preinstalled image I get a bootloop with a black screen for 5 seconds, so kernel tries to boot OS but unfortunately I can't use ADB shell because is not working...
If any dev can/wants to help me is welcome! Two brains are better than one...
Uart. You need uart to debug it if the kernel cannot reach the point of loading adb!
Sent from my GT-I9070 using Tapatalk 4
Tesla-MADAL93 said:
Finally something moves! I recompiled again with other changes, now after installing device-specific zip file and preinstalled image I get a bootloop with a black screen for 5 seconds, so kernel tries to boot OS but unfortunately I can't use ADB shell because is not working...
If any dev can/wants to help me is welcome! Two brains are better than one...
Click to expand...
Click to collapse
Try starting adb service on early-init and start services using logwrapper binary to debug
Sent from my GT-S5367 using xda app-developers app
Shaaan said:
Uart. You need uart to debug it if the kernel cannot reach the point of loading adb!
Sent from my GT-I9070 using Tapatalk 4
Click to expand...
Click to collapse
I was thinking about uart but I don't have an interface...
frapeti said:
Try starting adb service on early-init and start services using logwrapper binary to debug
Sent from my GT-S5367 using xda app-developers app
Click to expand...
Click to collapse
Okay, I will try this
I upload device-specific zip on my dev-host as soon as I can, so if a dev wants to take a look into it he can
Inviato dal mio GT-I9070
EDIT: Device-specific zip available here
Code:
[CODE][CODE]
[/CODE][/CODE]
Tesla-MADAL93 said:
I was thinking about uart but I don't have an interface...
Okay, I will try this
I upload device-specific zip on my dev-host as soon as I can, so if a dev wants to take a look into it he can
Inviato dal mio GT-I9070
EDIT: Device-specific zip available here
Click to expand...
Click to collapse
Part of TeamCanjica is interested in getting ubuntu touch running . I have already made all modifications needed if you want to join this project please pm me. I am running a test build now on my ste device.
Edit: understand it's not Janice. Diego or Frapeti are doing it. I have another ste device similar to s3 mini.
---------- Post added 26th January 2014 at 12:06 AM ---------- Previous post was 25th January 2014 at 11:20 PM ----------
Tesla-MADAL93 said:
Finally something moves! I recompiled again with other changes, now after installing device-specific zip file and preinstalled image I get a bootloop with a black screen for 5 seconds, so kernel tries to boot OS but unfortunately I can't use ADB shell because is not working...
If any dev can/wants to help me is welcome! Two brains are better than one...
Click to expand...
Click to collapse
I get the same issue as well interesting I have a different ste device so hey it's a common issue
https://github.com/Novathor-Touch
A little info on the real issue with ubuntu touch bootloop
That's my data partition pretty sure you have the same issue. Now if I can change the features I should be ok
Code:
sec-battery sec-battery: sec_bat_monitor_work: Status(Discharging), Health(Good), Cable(1)
[ 2.924194] initrd: mounting /dev/mmcblk0p25
[ 2.927978] EXT2-fs (mmcblk0p25): error: couldn't mount because of unsupported optional features (44)
[ 2.951538] EXT4-fs (mmcblk0p25): couldn't mount as ext3 due to feature incompatibilities
[ 3.029205] EXT4-fs (mmcblk0p25): recovery complete
[ 3.029235] EXT4-fs (mmcblk0p25): mounted filesystem with ordered data mode. Opts: (null)
[ 3.587127] Kernel panic - not syncing: Attempted to kill init!
dead or undead?
So is this it now for our Ubuntu Touch hopes?
Will there be anything done?
Or is this here just a relict of a dead end road?
I would love to see Ubuntu on my phone and certainly i am not the only one - but if it will not be possible then please just tell me and i will check for compatibility on a future phone i will buy just to be sure.
dawnofkardath said:
So is this it now for our Ubuntu Touch hopes?
Will there be anything done?
Or is this here just a relict of a dead end road?
I would love to see Ubuntu on my phone and certainly i am not the only one - but if it will not be possible then please just tell me and i will check for compatibility on a future phone i will buy just to be sure.
Click to expand...
Click to collapse
I can see the desperation in you for Ubuntu touch, good. Then why don't you try yourself and contribute to others instead of cribbing here. Your post sounded very rude, sorry to say this.
Sent from my GT-I9070 using Tapatalk
No ETAs please. I am still working on it. Btw, Nexus devices have the maximum compatibility by Canonical, but issues too.
Annasarp said:
I can see the desperation in you for Ubuntu touch, good. Then why don't you try yourself and contribute to others instead of cribbing here. Your post sounded very rude, sorry to say this.
Sent from my GT-I9070 using Tapatalk
Click to expand...
Click to collapse
Sorry.
I did not want to:
- offend anybody or anything
- ask for ETA
- sound rude in any way
I was asking if there is still work in progress or if this is totally abandoned.
This was answered by Tesla and i am grateful to hear that he is still working on it.
So please excuse me for writing words that can be misunderstood.
For participating:
I have some minor Linux skills and compiled some kernels due to real time audio applications within linuxmint and opensuse.
I work as a 3d design egineer for special machines.
I never had the time to get into compiling ubuntu touch (married and 2 kids and a - but if you think my skills would be of help please feel free to contact me via pm and i will do what i can to help you or anybody who needs help with the issue.
any updates
londheaakash said:
any updates
Click to expand...
Click to collapse
Tesla-Madal is working on it. Be patient. And pls. Stop asking questions like when next update.
Sent from my GT-I9070P using xda app-developers app
Anyone trying on this can share their progress here so we can help
Enviado desde mi GT-I9505 mediante Tapatalk

Categories

Resources