{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Disclaimer : This thread is ONLY for developers/Users who wish to run GNU/Linux on their device and improve the port . PC is required to flash the images. Read from available documentation given .
ALPHA BUILDS!
Calls work only on ubuntu touch as of now:
Ubuntu touch
For testing images : https://forums.ubports.com/topic/3702/yu-black-garlic scroll to Install section
For fixing recording without much hasssle ,
connect to internet,
Code:
sudo mount -o remount,rw /
, enter root passwd
then,
Code:
sudo apt-get update && sudo umount /lib/udev/rules.d/70-android.rules && sudo umount /usr/share/apparmor/hardware/graphics.d/apparmor-easyprof-ubuntu_android && sudo umount /usr/share/apparmor/hardware/video.d/apparmor-easyprof-ubuntu_android && sudo apt-mark hold qtubuntu-android && sudo ubports-qa install xenial_-_gst-droid
accept ,
reboot
Code:
wget https://static.peat-network.xyz/junk/ubports/com.ubuntu.camera_3.1.1+gstdroid2_armhf.click && pkcon install-local --allow-untrusted com.ubuntu.camera_3.1.1+gstdroid2_armhf.click
Multirom config : noughatmultirom.zip . twrp (not my favorite , works with ubuntu touch only as primary rom,secondaries are noughat)
KDE Plasma Mobile
Haven't built images for it in a while.. Maybe after ubports porting is done in freetime.
Status of the port : https://github.com/Halium/projectmanagement/issues/123
Manifest : https://github.com/Halium/halium-devices/pull/146/commits/75a85c86b8abae5bfba322c907bc431f2a49548b
System and hybris-boot : FOLDER
Pick the latest rootfs from the Plasma mobile website also in docs
Type of Rootfs to use : Plasma-edge-caf rootfs (armhf)
Installation guide: http://docs.halium.org/en/latest/po...sma-mobile.html#install-rootfs-and-system-img
The ubuntu folder isn't working
Xpl0it_U said:
The ubuntu folder isn't working
Click to expand...
Click to collapse
Replaced broken link
Ok, thanks
can't boot it, stuck at bootlogo, can telnet to the phone tho
Xpl0it_U said:
can't boot it, stuck at bootlogo, can telnet to the phone tho
Click to expand...
Click to collapse
Which rootfs one did you use?
The port is past the telnet stage .. seems like rootfs is not properly extracted , has everything run correctly with halium-install?
pbteja said:
Which rootfs one did you use?
Click to expand...
Click to collapse
ubuntu xenial armhf
Xpl0it_U said:
ubuntu xenial armhf
Click to expand...
Click to collapse
And the recovery needs to have insecure adb, use this: https://www.androidfilehost.com/?fid=6006931924117909377 or treble twrp both allow adb debugging in recovery mode
pbteja said:
And the recovery needs to have insecure adb, use this: https://www.androidfilehost.com/?fid=6006931924117909377 or treble twrp both allow adb debugging in recovery mode
Click to expand...
Click to collapse
ok, i'll try it tommorrow
alright, it worked, is there any way to get or port anbox to this phone?
btw needs some optimization, this is slow af sometimes
Xpl0it_U said:
alright, it worked, is there any way to get or port anbox to this phone?
btw needs some optimization, this is slow af sometimes
Click to expand...
Click to collapse
Anbox: https://gist.github.com/Vince1171/69cdcb2e90f2c70e3ee24de93da8caac
Bugginess is due to services crashing in the background and also its not 64bit rootfs primarily media-hub and location that 'might' get fixed when somebody gets apparmor working...
Thanks for the guide, any way to fix those crashes?
Xpl0it_U said:
Thanks for the guide, any way to fix those crashes?
Click to expand...
Click to collapse
Yeah everything should work eventually, its mostly app-armor, the system expects it and its not in kernel ... so things can be fixed in linuxy way ofc through terminal for example gps is a permission issue (idk why) but have to dip into sources and rebuild the system and make our own device adaptation
I think I found something that could help with apparmor:
http://www.mardy.it/blog/2019/07/notes-on-porting-the-samsung-j3-to-halium-+-ubports.html
Scroll where it says "building the kernel", it mentions something about enabling apparmor
Xpl0it_U said:
I think I found something that could help with apparmor:
http://www.mardy.it/blog/2019/07/notes-on-porting-the-samsung-j3-to-halium-+-ubports.html
Scroll where it says "building the kernel", it mentions something about enabling apparmor
Click to expand...
Click to collapse
Hello, apparmor has been fixed... so far
No camera and no mtp usb , no flashlight , rest of hardware works
The build has some bugs like can't change volume during calls and similar small things that matter for daily use case... and then there is an overall slowness of the os ...
I'm doing multiple builds everyday trying to fix camera , if you want to try and use the latest build i can upload it for you
That would be cool, the only thing that changes is the hybris-boot.img, right?
Xpl0it_U said:
That would be cool, the only thing that changes is the hybris-boot.img, right?
Click to expand...
Click to collapse
Yes and system image as well, bunch of vendor libs have been added
pbteja said:
Yes and system image as well, bunch of vendor libs have been added
Click to expand...
Click to collapse
Aight, if there's a tutorial of how to update the device tree and the kernel and build it so you don't have to upload it would be better (if it doesn't take too much to build)
deleted
I have the same specs, so I'll try future builds, as It's faster than downloading
Related
I've searched the web, and found no lynx binaries for android, so I set out to compile it myself.
For the uninitiated, lynx is a text-based browser. No images, no javascript, no flash. Just pure content.
You can use it by connecting to your phone through adb, telnet, ssh or a shell on the phone itself.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is lynx version 2.8.8 with ncurses 5.9
I pretty much just followed the instructions at http://www.embedu.org/Column/Column294.htm, and added a flag to make the linking static. No code changes were required.
Installation instructions
Root is not required.
You need to unzip the file on the /sdcard folder. The following files must exist:
/sdcard/lynx/lynx.cfg
/sdcard/lynx/lynx.lss
/sdcard/lynx/cache/
Then you need to move the binary to /data/local (or /system/xbin if you want something more permanent. Then you'd need root)
and run this command:
chmod 755 /data/local/lynx
Then run :
/data/local/lynx
and enjoy!
Additional information
If you want to put these files somewhere else, you must redefine the following variables, respectively:
LYNX_CFG (eg: export LYNX_CFG=/system/etc/lynx.cfg)
LYNX_LSS (eg: export LYNX_LSS =/system/etc/lynx.lss)
TMPDIR (eg: export TMPDIR =/cache)
If you receive an error message about the terminal, you need to configure a terminal.
Here are some instruction (for nano, but it works the same)
Sources are at the following addresses:
http://lynx.browser.org/
http://www.gnu.org/s/ncurses/
reserved
soon get the flash-able package
Thanks! I installed this on my ZTE Blade with 2.3.4 Gingerbread, but after setting everything in Terminal Emulator, I get these errors:
Alert!: Unable to connect to remote host.
Looking up lynx.isc.org
Unable to locate remote host lynx.isc.org.
lynx: Can't access startfile http://lynx.isc.org
Click to expand...
Click to collapse
As if there were no internet connection...
Awesome
Will be testing on my thunderbolt later today. I'll let you guys know how it goes.
However, would you mind reposting this on RW, or would you mind if I were to repost it and link back?
[EDIT] In having just configured everything, I also get the error from the post above. It seems as though lynx thinks it doesn't have internet access. This is the case on 3g and wireless networks. Let me know if you want me to test anything for you.[/EDIT]
All the best,
-HG
Looks great.
May I add that to my script ?
http://forum.xda-developers.com/showthread.php?t=1191984
Well, I was able to install it from a chrooted ubuntu 10.10 distro on my device. It's already compiled for ARM on ports.ubuntu.com, so maybe it's not so exclusive.
Sent from my Milestone 2 XDA App
Sure
sebsch1991 said:
Looks great.
May I add that to my script ?
http://forum.xda-developers.com/showthread.php?t=1191984
Click to expand...
Click to collapse
Sure, go ahead. It's open-sourced after all, I just built it.
dangpzanco said:
Well, I was able to install it from a chrooted ubuntu 10.10 distro on my device. It's already compiled for ARM on ports.ubuntu.com, so maybe it's not so exclusive.
Sent from my Milestone 2 XDA App
Click to expand...
Click to collapse
Nice. Can you point me to the correct file? I got as far as http://ports.ubuntu.com/pool/universe/l/lynx-cur/, but I don't know which one contains the binary.
While this is quite cool, why lynx? Why not elinks? It has much better layout capabilities. It has tabs! It even has javascript.
Code:
[email protected]:/# apt-get install lynx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
lynx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/215kB of archives.
After this operation, 254kB of additional disk space will be used.
Selecting previously deselected package lynx.
(Reading database ... 66275 files and directories currently installed.)
Unpacking lynx (from .../lynx_2.8.8dev.2-1_all.deb) ...
I installed it that way.
Search for opkg (i think this is the name) if you are curious. It's a way of using deb packaging on Android (G1), but not in development anymore...
Sent from my Milestone 2 XDA App
I would be nice if someone could compile the HTTPS version of this so I could browse my banks mobile site
norti said:
Thanks! I installed this on my ZTE Blade with 2.3.4 Gingerbread, but after setting everything in Terminal Emulator, I get these errors:
As if there were no internet connection...
Click to expand...
Click to collapse
any solution ? i got the same problem...
hawkeyexp said:
any solution ? i got the same problem...
Click to expand...
Click to collapse
Can you ping any web address from the shell? What about wget, can you try that?
both pissble without problems
I am getting the following error
Looking up <url>.
Unable to locate remote host <url>
Alert!: Unable to connect to remote host.
Hello everyone.
I think, the biggest problem of Firefox OS is no implemented Unix Commands. That make many restrictions, for example, you can't change your CPU Governor, move applications to SD Card etc.
So, I have been thinking about it. I Created a project of "Root" (Can I use this term?) for B2G. Here is:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Node.JS starts with B2G and receiving commands from Webapp via SocketIO and created library. Why I used NodeJS? At first, instalation is just copy&paste, permissions for Node and edit b2g.sh file, the second, that allows a large expansion.
So, what do you thinking about this? Maybe do you have better solution?
The target audience of Firefox OS are entry-level smartphone users, and the platform APIs are those of the Web. So it will never have full Unix power.
Your ideas for hacking a local desktop power-user version are interesting though. I like the idea of hacking Node.js + Firefox OS to build a web-platform development distro!
Siprah123 said:
So, what do you thinking about this? Maybe do you have better solution?
Click to expand...
Click to collapse
Your idea is great
Do it please
Now i have terminal emulator and CPUcontrol on FirefoxOS (But runing on PHP)
i think it will great if runing on node.js
Flashable zip
http://forum.xda-developers.com/devdb/project/dl/?id=553
At this time, I done it:
Hooked HTML Code into another page (for example into Gaia - modifiable interface).
http://screencloud.net/img/screenshots/b77d1c115b2ecfbea2291deb373a455a.png
And commands!
http://screencloud.net/img/screenshots/984532385587b94361fd097b7ee9dee1.png
http://screencloud.net/v/lfy7
http://screencloud.net/v/zP0
Great work!
Do you compile it for ARM?
Send me a link please
sorry for my bad english
Node.JS is already compiled for ARM and works perfectly
Anyway, I created a prototype of hooks for Gaia Interface - http://imgur.com/a/4NUNg
I'll public it when will be ready (I hope soon).
Siprah123 said:
Node.JS is already compiled for ARM and works perfectly
Anyway, I created a prototype of hooks for Gaia Interface - http://imgur.com/a/4NUNg
I'll public it when will be ready (I hope soon).
Click to expand...
Click to collapse
from
http://nodejs.org/download/
i not see download For liux arm ??
Give me a link please
I just compiled from sources with Android NDK.
Siprah123 said:
I just compiled from sources with Android NDK.
Click to expand...
Click to collapse
Wait for you
Siprah123 said:
I just compiled from sources with Android NDK.
Click to expand...
Click to collapse
OK now i learn to cross compile and compile successful
Can you teach me or example a code ? How to Hook gaia?
I added a hook just via editing a Gaia Interface. After Socket.IO Recieving HTML Code from server and justs adding something.
By the way. How permissions works http://www.youtube.com/watch?v=IDYfVFdxMqA
Siprah123 said:
I added a hook just via editing a Gaia Interface. After Socket.IO Recieving HTML Code from server and justs adding something.
By the way. How permissions works http://www.youtube.com/watch?v=IDYfVFdxMqA
Click to expand...
Click to collapse
How you edit b2g.sh ?
Is gaia run from node.js not b2g?
Wow Great work!
Can't wait for release
pureexe said:
How you edit b2g.sh ?
Is gaia run from node.js not b2g?
Wow Great work!
Can't wait for release
Click to expand...
Click to collapse
I edited b2g.sh in my computer, pushed and changed chmod for it. In release that process will be automatically
Code:
#!/system/bin/sh
umask 0027
export TMPDIR=/data/local/tmp
mkdir -p $TMPDIR
chmod 1777 $TMPDIR
ulimit -n 4096
# Run Node.JS Server
exec /system/b2g/node/node /system/b2g/node/app/app.js &
if [ ! -d /system/b2g ]; then
log -p W "No /system/b2g directory. Attempting recovery."
if [ -d /system/b2g.bak ]; then
if ! mount -w -o remount /system; then
log -p E "Failed to remount /system read-write"
fi
if ! mv /system/b2g.bak /system/b2g; then
log -p E "Failed to rename /system/b2g.bak to /system/b2g"
fi
mount -r -o remount /system
if [ -d /system/b2g ]; then
log "Recovery successful."
else
log -p E "Recovery failed."
fi
else
log -p E "Recovery failed: no /system/b2g.bak directory."
fi
fi
LD_PRELOAD="/system/b2g/libmozglue.so"
if [ -f "/system/b2g/libdmd.so" ]; then
echo "Running with DMD."
LD_PRELOAD="/system/b2g/libdmd.so $LD_PRELOAD"
export DMD="1"
fi
export LD_PRELOAD
export LD_LIBRARY_PATH=/vendor/lib:/system/lib:/system/b2g
export GRE_HOME=/system/b2g
exec /system/b2g/b2g
Can you upload your nodejs binary file?
I try to compile with my self but failed on run npm
any update?
Ehi Siprah!cmon we are all waiitng for your updates!
+10 for this project! I love the possibilities this hack brings us. Can you open a github? I'm too interesed in the code to wait for it
Great idea!Just do it!
Desktop environment: Mate.
What work?
Wi-Fi - automaticaly connect by using android config
Bluetooth
Xorg server
Audio
What doesn't work:
qemu-i386 + wine
Network Manager applet don't show network connection icon.
Download:
https://drive.google.com/file/d/0B-6iiCUyzZjWZVpKS3EwcjBpZ0k/view?usp=drivesdk
Install:
Install Debian_Jessie_ARMHF.mrom File by twrp multirom.
Working with LTE 2013 ^^
Boots on WiFi only "Flo". Need to figure out WiFi to confirm, but I think gnome will work as a better interface. Much more touch friendly.
Sent from my SM-N910T3 using XDA-Developers mobile app
That is really awesome! Habe been looking for something like this for a long time.
How does one bring up a keyboard?
Failed...
Hi, that was the ROM I was looking for!
I downloaded the ROM from the above link to a USB drive, then I tried to install that ROM on my Nexus 7 2013 device as a secondary ROM besides Cyanogenmod 13 with Multirom TWRP 3.0.0-0, but it failed with following messages:
Code:
Updating partition details...
...done
Full SELinux support is present.
Installing ROM Debian_Jessie_ARMHF...
Free space check: Required: 1500 MB, free: 29118 MB
Creating folders and images for type 9
Disk size: 30703664
Freesize: 29817632
Space Required: 1536000
Creating root.img...
MTP Enabled
Debian Jessie ARMHF by Szybol. GG: 12352244
Extrating tarball rom/root_00.tar.gz...
Failed to extract tarball rom/root_00.tar.gz for folder root!
Failed to extract base root
Erasing incomplete ROM...
Any idea what's been going wrong?
Thanks, Heinz
You want install debian on usb stick, simple set root's image size to 4000MB.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
New distro comming.
Ubuntu Xenial
View attachment 3726433
Oh no, I wanted to install Debian on the Nexus 7, not on the USB stick. How do I do that? Must be quite simple, but I have no idea...
Heinz
Do you have Access to folder: /data/media/0/multirom/roms ? On this location can you find folder internal or cyanogenmod?
Your device is flo "wifi" or deb "LTE"?
If you have this path and folders you can install Debian manualy.
You must have busybox installed!
I wait for reply, then i post next steps to extract Debian archive
Szybol said:
Do you have Access to folder: /data/media/0/multirom/roms ? On this location can you find folder internal or cyanogenmod?
Click to expand...
Click to collapse
Yes, I have access to this folder. My device is rooted. And there is a folder "Internal".
Your device is flo "wifi" or deb "LTE"?
Click to expand...
Click to collapse
It is the "deb" version with LTE.
If you have this path and folders you can install Debian manualy.
You must have busybox installed!
Click to expand...
Click to collapse
Busybox is installed, it's version 1.24-meefik.
Thank you for supporting me! My English is not the best, I live in Germany.
Heinz
Copy file to /sdcard and run in terminal or adb commands
[email protected]:/# adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[email protected]:/ $ su
[email protected]:/ # cd sdcard
[email protected]:/sdcard # unzip /sdcard/Debian_Jessie_ARMHF.mrom
[email protected]:/sdcard # mkdir /data/media/0/multirom/roms/Debian
[email protected]:/sdcard # mkdir /data/media/0/multirom/roms/Debian/root
[email protected]:/sdcard # cp /sdcard/root_dir/rom_info.txt /data/media/0/multirom/roms/Debian
[email protected]:/sdcard # tar -C /data/media/0/multirom/roms/Debian/root -xpzvf /sdcard/rom/root_00.tar.gz
[email protected]:/sdcard # tar -C /data/media/0/multirom/roms/Debian/root -xpzvf /sdcard/rom/root_01.tar.gz
[email protected]o:/sdcard # tar -C /data/media/0/multirom/roms/Debian/root -xpzvf /sdcard/rom/root_02.tar.gz
Click to expand...
Click to collapse
It stays stuck at Google Logo(after I've chosen Debian in Multirom) for me. I waited about 30 Minutes.
I Now I have a working GUI with root privileges, thank you Szybol! Even a wireless keyboard and mouse works, with the USB plug on the other end of an OTG cable. The next is to get the wifi and mobile network working...
The point all this is to have dock station with some usb's.
Wireless keyboard, mouse.
And hdmi to monitor, tv.
Of course OS must support second screen.
bluetooth devices
Has anyone test bluetooth keyboard and mouse yet ?
Considering before install
Does it have the same bugs, that the native Arch port had, like issues with rotating the screen or breaking the whole system while updating it? Does the framebuffer output work?
Tried pairing my bluetooth keyboard, sadly it fails everytime for me
Is there anyway to set screen rotation to horizontal? Tried that, but it made Debian crash
witti96 said:
Does it have the same bugs, that the native Arch port had, like issues with rotating the screen or breaking the whole system while updating it? Does the framebuffer output work?
Click to expand...
Click to collapse
RodrigoDavy said:
Tried pairing my bluetooth keyboard, sadly it fails everytime for me
Is there anyway to set screen rotation to horizontal? Tried that, but it made Debian crash
Click to expand...
Click to collapse
The driver that is being used for hardware acceleration (freedreno) does not support rotation on our GPU (Adreno 3xx). Unfortunately, when tried, the driver crashes and takes the entire X-Server with it. If you look in the arch thread, you can find that I had even attempted building freedreno from source with the hope that upstream has this issue fixed, but sadly they do not. That said, the framebuffer works, it's just that the refresher built into the MSM driver is broken. So a separate software refresher needs to be used in order to see anything via the FB. If you don't care much about hardware acceleration, you can easily install an alternative framebuffer driver such as fbturbo or the like, however you'll need to do some hacky work to get X to initialize properly with them. In my custom arch image, I had to make a systemd unit that first started X using a freedreno configuration file, then killed X and started it properly using fbturbo in order to get it to work properly.
How to connect to a WiFi network
Thank you for your work, it is awesome. But i don't understand how to connect to a WiFi network... Can you please explaine me this? Many thanks
jiocol said:
Thank you for your work, it is awesome. But i don't understand how to connect to a WiFi network... Can you please explaine me this? Many thanks
Click to expand...
Click to collapse
It uses the wifi configurations of your android tablet. So if you have your wifi configured on the android it should connect automatically on Debian. (even if it doesn't indicate so)
[=RodrigoDavy;66834836]It uses the wifi configurations of your android tablet. So if you have your wifi configured on the android it should connect automatically on Debian. (even if it doesn't indicate so)[/QUOTE]
Ok, great, many thanks
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Huawei have helpfully released the kernel source for the Honor 7 on their download site. Impressively, the version posted there (3.10.86) actually matches the current release build (B330). However, the download itself is only part of the puzzle - it's important to then know how to compile it and use it. Hence this guide.
Some points to note first of all...
This guide refers to building on Linux. You can probably build on OSX or whatever too but seriously, it's less pain in the long run to spin up an Ubuntu VM.
There is a readme file in the kernel download with build instructions. Don't follow it... it won't work. You will end up with a built kernel, but it won't flash to your device due to the size of the file created by the 4.9 toolchain. Strange I know.
In the download linked above, as well as the kernel, there are some other bits and pieces (some of which are quite bizarre). I've mirrored the kernel to Bitbucket, so you don't need to grab the whole download.
Got that? OK, so here's a step by step on how to build the kernel! I strongly recommend building stock first and testing that works for you, then you can start adding your tweaks in. I'm interested to hear what you add / change!
Open a terminal window on your Linux machine / in your Linux VM. No GUIs here. Change to the directory where you want the kernel / toolchain to live.
First of all, we're going to clone the toolchain from AOSP.
Code:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.8
Next we're going to clone the kernel source itself from my git repo on bitbucket.
Code:
git clone https://bitbucket.org/paulobrien/android_kernel_honor7.git
We need to add the toolchain location to the path.
Code:
export PATH=$(pwd)/aarch64-linux-android-4.8/bin:$PATH
We need to specify that we are cross compiling for arm64.
Code:
export CROSS_COMPILE=$(pwd)/aarch64-linux-android-4.8/bin/aarch64-linux-android-
Let's create a directory for our output to go in to.
Code:
mkdir out
We've got the kernel downloaded, so let's change to that directory so we're ready to go.
Code:
cd android_kernel_honor7
A bit of cleaning up before we get started...
Code:
make ARCH=arm64 O=../out mrproper
Specify that we're building for PLK (Plank = H7)...
Code:
make ARCH=arm64 O=../out hw_PLK_defconfig
And build it!
Code:
make ARCH=arm64 O=../out -j8
When this process completes, we can check the '../out' directory and you should find the file arch/arm64/boot/Image. This is the kernel that you've just built! You can't flash it as is though, you need to put it into a boot image first.
Here's how you do it...
Change out of the kernel directory back to its parent.
Code:
cd ..
Download tools for manipulating the boot image.
Code:
git clone https://github.com/xiaolu/mkbootimg_tools.git
Download the stock boot image (actually we're using the root ready version for convenience).
Code:
wget -O boot.img http://nigella.modaco.com/files/boot.policypatched.b330.img
Extract the boot image.
Code:
mkbootimg_tools/mkboot boot.img boot.extracted
Copy the new kernel into the extracted boot folder.
Code:
cp out/arch/arm64/boot/Image boot.extracted/kernel
Build a new boot image.
Code:
mkbootimg_tools/mkboot boot.extracted boot.newkernel.img
You now have a new boot image (boot.newkernel.img). All that's left is to flash it to your device! Reboot to bootloader (either using 'adb reboot bootloader' or by powering on with volume down held), flash using 'fastboot flash boot boot.newkernel.img' and then reboot using 'fastboot reboot'. Job done! In the About screen of settings you should see the date of the new kernel and details of your build machine.
Well Done mate! Can we be hopefull about a sort of unoffical cm?
Caleidoscopio said:
Well Done mate! Can we be hopefull about a sort of unoffical cm?
Click to expand...
Click to collapse
Not sure this really helps with that. It's not something I'm looking at atm anyway I'm afraid (due to time constraints).
P
A quick note on building with the 4.9 toolchain - basically, the boot image that gets created is too big. This can be resolved by deleting unnecessarily PNGs in ramdisk/res/images/charger.
P
cant a new kernel be used to extend the battery life?
joelk2 said:
cant a new kernel be used to extend the battery life?
Click to expand...
Click to collapse
With the right tweaks, of course!
P
Sent from my HTC 10 using Tapatalk
I've patched the kernel from .86 to .101. All working well!
P
hi paulobrien, i want to try to compile my own kernel, i'm not an expert of android building but i've compiled varoius linux kernel so my question is where i can find useful patch to add on my kernel? thanks for the help
Do you know to build kernel for honor 7c... Actually I am looking for a nethunter kernel for my device but there is nothing if you know the tutorial please tell me I will try myself because there is no one who comes forward for compiling my kernel
Official Kernel source for huawei honor 7c https://download-c1.huawei.com/down...oadId=98821&version=416732&siteCode=worldwide
Hello guys, i've successfully built plasma mobile for Xiaomi MI3.
First, you need to download my images: https://drive.google.com/drive/folders/1koCdOk7G3KX_rNlFzuObro1OVb4XRCS8 plasma caf rootfs: http://images.plasma-mobile.org/caf-rootfs/ and some scripts: https://github.com/JBBgameich/halium-install
Reboot your device to recovery and run this command: ./halium-install <pm rootfs path> <system.img path> pm
When finished flash boot.img, reboot the phone and take it connected to the pc
Every boot took ~5 minutes so wait and run this command in background while : ; do lsusb -v 2>/dev/null | grep -Ee 'iSerial +[0-9]+ +[^ ]' ; done (This command is in loop) when you'll see "Gnu/Linux" your phone is booted.
Once booted we need to connect to it with ssh, so run this command Connect.py -p ssh -u phablet
When we are connected we need to disable rsyslog and remove all logs (it fills up all the memory) so run these 3 commands: systemctl disable rsyslog | rm /var/log/syslog | rm /var/log/Kern.log
Now we need to connect to internet enable wifi echo sta > /sys/module/wlan/parameters/fwpath and connect to the network nmtui
Ok now we must create udev rules or plasma GUI doesn't work so change directory cd /etc/udev/rules.d/ and wget https://raw.githubusercontent.com/h...cf/usr/lib/lxc-android-config/70-cancro.rules
We have to resolve apt problems so edit this file /etc/passwd and replace this _apt: x :114:65534::/nonexistent:/bin/false with this _apt: x :0:65534::/nonexistent:/bin/false
When you have modified it, run apt update and reboot it systemctl reboot
Tadaaa you have got plasma on Mi3!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
P.s Sorry for my bad English, this is my first porting and camera doesn't work yet... Don't do apt upgrade or you will break the installation!
Please screenshots...
it have some big problem with camera and audio... Don't do apt upgrade or you will break the installation!
Click to expand...
Click to collapse
@Mattia990 Okay. I understood. Porting was successful. But there is no audio and the camera does not work. Unfortunately, audio is very important for telephoning ... Good work! I wish you a successful sequel!
Great
Wow
Good work
Good, but very deep linux...
...I think not adjustable for an average user.
Images updated!
Fixed audio, now works very well.
any instructions for multirom??
@Mattia990
Dear Developer genius!
Please give us a video tutorial (if possible)
We are very curious
But we're stupid for deep linux
Certainly I can not solve it on my own
Thanks: JJ
Great work and many many thanks for the hard work. It should be easy for common man to install it.
Woow interesting port, you'll continue maintaining this port? if you need help I'm not a developer of android but I use gentoo linux and I know about build a system xD
JulianJenner said:
@Mattia990
Dear Developer genius!
Please give us a video tutorial (if possible)
We are very curious
But we're stupid for deep linux
Certainly I can not solve it on my own
Thanks: JJ
Click to expand...
Click to collapse
Now i can't make a video but in the future i think yes
New porting guys!
Ubuntu touch 16.04
Mattia990 said:
New porting guys!
Ubuntu touch 16.04
View attachment 4573232
Click to expand...
Click to collapse
oh good.please share download link
Haggiskop said:
oh good.please share download link
Click to expand...
Click to collapse
I will realize two tutorial, one for plasma and another for ubuntu, as soon as possible.
Now ubuntu has some critical bugs so i'll try to resolve them and then i will post the tutorials.
Mattia990 said:
New porting guys!
Ubuntu touch 16.04
View attachment 4573232
Click to expand...
Click to collapse
NICE, but we just saw only pictures and deep-linux until now...it is not too userfriendly...
I'm very proud of you. It is a great honor for you to deal with such an old phone. We are looking forward to the tutorial and the ROM.
it doest boot on mi4cdma
un..:good:
link drive.google.com/drive/folders/1koCdOk7G3KX_rNlFzuObro1OVb4XRCS8
no files in this link seems like deleted, please share me new link or files
I'm trying to installed but it is not booting