Can i edit kernel With the new OC to be without partitions? - HTC Pico (Explorer)

I know it can burn my nand but it can be recovered aint that right? using Cute_Prince to Fix Burnt Nand
I should extract The Boot.img and remove lines for Mounting SD-DATA and SD-CACHE only and repack and it'll work?
That's because my sd card is Class 4 ,, and Right now i don't buy a new card for an old phone to me

Hassan 4 said:
I know it can burn my nand but it can be recovered aint that right? using Cute_Prince to Fix Burnt Nand
I should extract The Boot.img and remove lines for Mounting SD-DATA and SD-CACHE only and repack and it'll work?
That's because my sd card is Class 4 ,, and Right now i don't buy a new card for an old phone to me
Click to expand...
Click to collapse
Its not that easy. instead of that u can use any non oc kernel

shree15 said:
Its not that easy. instead of that u can use any non oc kernel
Click to expand...
Click to collapse
Hell yeah ,, i've done it
THe ROm is ****ingly awesome with a sd card class 4 without partitions needed
Kernel Used :Aries Kernel and i've edited it to Mount the NAND partitions used for 2-3 hours now no NAND Burnt
Here is the Flashable Zip for it (WARNING:Flash at your responsibilty due to NAND Burns may occur to you

Hassan 4 said:
Hell yeah ,, i've done it
THe ROm is ****ingly awesome with a sd card class 4 without partitions needed
Kernel Used :Aries Kernel and i've edited it to Mount the NAND partitions used for 2-3 hours now no NAND Burnt
Here is the Flashable Zip for it (WARNING:Flash at your responsibilty due to NAND Burns may occur to you
Click to expand...
Click to collapse
Which rom you are using ???

Related

[Q] Stock Rom + Partitions

First of all,i am really happy to announce (for those who came across with my desperate threads trying to solve my battery drain over 3G network issue) that flashing XXJPU Rom + Removing the partitions (swap + external extra storage) of my SD Card solved my problem. Battery is not draining anymore,and everything is working just fine with the stock rom.
The question is : Can i partition my SD Card again (to add internal storage,since i´ve came across the damn "Internal Storage is Nearly Full" message) ?
If yes,will i have to reflash the rom or , do anything else then just creating the partition using the Minitool software ?
Thanks in advance,and thanks again for those who tried to help me !
No need to make a new partition, extend the current one by minitool/gparted
I have o only one big partition used to store normal content. I need to make a new one to use as a extra internal storage space.. So i do need to partition it, all i need to know is if it will work and if i will have to do something else after partitioning it
Sent from my GT-I5800 using XDA App
What can we do partition in our stock rom which would use as internal storage...? How to do it please teach me..
Sent from my GT-I5800 using XDA App
hadi_xman said:
What can we do partition in our stock rom which would use as internal storage...? How to do it please teach me..
Sent from my GT-I5800 using XDA App
Click to expand...
Click to collapse
If you create a partition on your SD Card as EXT2 ( i guess its EXT2 ) ,your OS will use it as internal storage.
Doing this,will solve the low internal storage issue.
I Just dont know if it works on stock roms,it does work on Kyrillos, inDroid, Sumee etc.
@OP i though u already had one partition when you said partition again
if your sd is as it is(just one partition)
then do this
flash g3mod
reboot into recovery
and partition
its the fastest way to get a partitio
then you can use an app2sd/data2sd script (system/etc/init.d)
Or if you have a card reader
use minitool/gparted to partition
shrink the existing one and make a new partiton(ext4)
and yea backup ur data, just in case!
cdesai said:
@OP i though u already had one partition when you said partition again
if your sd is as it is(just one partition)
then do this
flash g3mod
reboot into recovery
and partition
its the fastest way to get a partitio
then you can use an app2sd/data2sd script (system/etc/init.d)
Or if you have a card reader
use minitool/gparted to partition
shrink the existing one and make a new partiton(ext4)
and yea backup ur data, just in case!
Click to expand...
Click to collapse
Thanks for the reply : )
I will use minitool since i know how to use it.
After creating a EXT4 Partition,what will i need to actually tell my OS to use it as internal storage ?
Will i need to reflash rom ? Run any script (like Data2SD) ?
Also, is the Kernel or the Rom that actually recognizes the partitions and use them ?
EDIT : Hey @cdesai i just partitioned my SD using minitool creating a EXT2 Partition for internal storage upgrade.
Following again,this tutorial here : http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
Titaniun backup is not recognizing the extra space,what do i have to do now ?
marcelloLins said:
Thanks for the reply : )
I will use minitool since i know how to use it.
After creating a EXT4 Partition,what will i need to actually tell my OS to use it as internal storage ?
Will i need to reflash rom ? Run any script (like Data2SD) ?
Also, is the Kernel or the Rom that actually recognizes the partitions and use them ?
EDIT : Hey @cdesai i just partitioned my SD using minitool creating a EXT2 Partition for internal storage upgrade.
Following again,this tutorial here : http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
Titaniun backup is not recognizing the extra space,what do i have to do now ?
Click to expand...
Click to collapse
Hmm.
ext4 would be a bit better but ext2 is also ok
now keep an a2sd script in /system/etc/init.d
there is a thread in dev section by kyrillos with the script and instructions, use it
or flash a custom rom which already has it
and yes you need a kernel with init.d support, but every custom kernel has that feature(cf-root,fugumod,g3mod,simplicity,etc.)
marcelloLins said:
First of all,i am really happy to announce (for those who came across with my desperate threads trying to solve my battery drain over 3G network issue) that flashing XXJPU Rom + Removing the partitions (swap + external extra storage) of my SD Card solved my problem. Battery is not draining anymore,and everything is working just fine with the stock rom.
The question is : Can i partition my SD Card again (to add internal storage,since i´ve came across the damn "Internal Storage is Nearly Full" message) ?
If yes,will i have to reflash the rom or , do anything else then just creating the partition using the Minitool software ?
Thanks in advance,and thanks again for those who tried to help me !
Click to expand...
Click to collapse
use a custom room like indroid, kyrillos etc & enjoy after partition, set the restore location as "internal" in the titanium setting before restoring apps
Sent from my GT-I5800 using Tapatalk
Damn, i was trying to stick to a custom rom.
All right i will flash a custom rom.
Thanks for all the help guys
Sent from my GT-I5800 using XDA App
Best of luck
Sent from my GT-I5800 using Tapatalk

[Q]How to mount the 2nd partition of my SDCARD?

I just created a 2nd partition on my 8GB SD card so that i could move apps to it using link2sd...but when i open link2sd and select the file system of my SD card's 2nd partition (ext4) i get an error:
Mount script cannot be created.
mount: No such device.
ext4 may not be supported on your device. Try FAT32 on the second partition.
Click to expand...
Click to collapse
Other small question : Do I really need to mount the 2nd partition if I just wanna install custom ROMs?
Need help ASAP! thanks in advance .
Make ext3 partitions
No need of second partition for cyanogen. You may need it for sense
LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E.
If I haven't given you link, it's above. Just click it
ptcpayme said:
Make ext3 partitions
No need of second partition for cyanogen. You may need it for sense
LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E.
If I haven't given you link, it's above. Just click it
Click to expand...
Click to collapse
I made the second partition as FAT 32 and it worked.
Now the only doubt i have is...will ROMS work on FAT32 partition?
kingcola said:
I made the second partition as FAT 32 and it worked.
Now the only doubt i have is...will ROMS work on FAT32 partition?
Click to expand...
Click to collapse
If you are on Stock then maybe FAT32 partition may have worked.. or even otherwise maybe it will work,.. haven't used a FAT32 sd partition since JaggyROM 2.x.x ( obviously my 1st partition is fat32 ) ... My second partition is an ext and it is advisable to have an ext partition cause there are many scripts like int2ext , s2e, etc which work well with an ext partition...
A partition is Not necessary to made in order for other ROMs to work.. They will work just as well without a partition .. only thing is your internal memory will remain to be 150 mb.. Which is the memory allocated in our phone's nand..
NOTE: Sense 4.0a is the only ROM that you necessarily need to have an SD-EXT Partition of at least 1 GB. Otherwise it won't boot.
thanks for helping me..
I partitioned (1GB of memory to fat32) my sdcard with MiniTool Partition Wizard to facilitate to link2sd long back. Now I am unable to recover that memory and merge into a single partition. Do you guys have solution for this?
delete the partition in disk mgmt..
kingcola said:
I just created a 2nd partition on my 8GB SD card so that i could move apps to it using link2sd...but when i open link2sd and select the file system of my SD card's 2nd partition (ext4) i get an error:
Other small question : Do I really need to mount the 2nd partition if I just wanna install custom ROMs?
Need help ASAP! thanks in advance .
Click to expand...
Click to collapse
If anyone still have the above issue then just change ur sdcard partition type to ext3. Reboot mobile. Better to use link2sd for this.
smartksr said:
I partitioned (1GB of memory to fat32) my sdcard with MiniTool Partition Wizard to facilitate to link2sd long back. Now I am unable to recover that memory and merge into a single partition. Do you guys have solution for this?
Click to expand...
Click to collapse
do it through mini partition tool..delete the created partition..now right click on the 1st partition..slect extend..n drag the cursor till end...n click apply...done
Use Other Kernel
The reason for your second partition is not recognized is you may be at Stock Rom and Stock kernel....
Stock kernel do not support ext partitions...
Use ateeq kernel or cranium kernel for ext4 partition support....
Also use Mounts2sd instead of link2sd...!!!!
I used mounts2sd after I created sd card partition(ext3) but this app said partition not mounted; but link2sd recognised n created scripts.
Sent from my GT-S5830i using xda app-developers app
RajeevBN said:
I used mounts2sd after I created sd card partition(ext3) but this app said partition not mounted; but link2sd recognised n created scripts.
Sent from my GT-S5830i using xda app-developers app
Click to expand...
Click to collapse
Assuming you have the right kernel, install the startup script and change the driver in mounts2sd settings to ext3.
Sent from my Explorer A310e using XDA Premium 4 mobile app
Thanks mate!! Your ext3 suggestion worked perfectly for Link2SD on my droid.
BleedingIris said:
Make ext3 partitions
No need of second partition for cyanogen. You may need it for sense
LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E.
If I haven't given you link, it's above. Just click it
Click to expand...
Click to collapse
Thanks mate!! Your ext3 suggestion worked perfectly for Link2SD on my droid. :good:
hey guys, is it possible to access the 2nd partition on Android or under Windows? Link2SD sees my 2nd partition and mounts it correctly, but assuming I want to copy e.g. music files to the 2nd partition using Root Explorer or using my PC, how do I do that? I tried both and they don't see my 2nd SD partition at all...
chaoscreater said:
hey guys, is it possible to access the 2nd partition on Android or under Windows? Link2SD sees my 2nd partition and mounts it correctly, but assuming I want to copy e.g. music files to the 2nd partition using Root Explorer or using my PC, how do I do that? I tried both and they don't see my 2nd SD partition at all...
Click to expand...
Click to collapse
Use EXt2FS search in google you will get it..
Install it in your windows.. reboot your pc.. Then connect your card.. You will get the second partiton to see plus you can copy paste as well..
THANKS jynt_panwar!!!!! I WAS LOKING FOR THIS FOR A YEAR!!!!!!!!!! The Link2sd don't work for my phone (ZTE Blade L3 stock rom 4.4.2), but the Mounts2sd saved my life!!! Also I followed the instructions in this site: INCREASE YOUR ANDROID INTERNAL MEMORY || BY MOUNTS2SD (BEST WAY) in androcustomroms site. Maybe it can help more people... And thanks XDA of course!

[RECOVERY][STABLE] Patched CWM 6.0.3.2 For Bricked eMMCs + Touch

About
This is the patched version of my CWM 6.0.3.2 to run on Bricked Data Partition Devices . It recognize the ext4 partition mmcblk1p2 on external as data partiton so wipe data and mount data are now fully functional without any errors . I used the similar partition table on CM10 Patch by ivendor so If you have done the preparation ( making a 1.5 GB mmcblk1p2 on external sd as ext4 ) you only need to install recovery and if not you must create the partition on external sd . This version is really stable and perfect for daily usage .
Disclaimer
I 'm not responsible for any damage or ... that ariesed from using this recovery ! Do at your own risk . Do not install non-damaged eMMCs !
How to install with Terminal Emulator
1- Move the downloaded *.img file to /sdcard
2- Rename it to " recovery.img " ( all are lower case )
3- Type this commands in terminal :
Code:
su -c dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p13
4- Done !
How to install with Recovery mode
1- Rename downloaded *.img file to " recovery.img " ( all are lower case )
2- Replace the recocery.img with the one in zip file of an cwm flashable recovery
3- Flash the new .zip file you made
4- Done !
How to install with Odin
1- Rename file to " recovery.img " ( all are lower case )
2- Tar file using win rar or root explorer
3- Flash with odin
4- Done !
Downloads
CWM 6.0.3.2 - Stable - Patched for bricked eMMCs - Touch
Credits
Xistance ( CM10.1 , Vendor files and .... )
Ivendor ( recocery contents , cyanogen mod 10 , .... )
Buffo1987
Arco68
Reserved for OP
This is great stuff. Nice job man. I was really annoyed because i had to put my sdcard onto reader and then wipe with partition manager every time I wanted to reinstall the ROM
If anyone test this, post here.
I have only one minor advice, I think you should make .zip , .tar and just put links- For Odin: <link> , For flashing .zip: <link> because more thngs people have to do, more room for mistakes, it is easier for you to do it once.
Anyway great job.
sava92ns said:
This is great stuff. Nice job man. I was really annoyed because i had to put my sdcard onto reader and then wipe with partition manager every time I wanted to reinstall the ROM
If anyone test this, post here.
I have only one minor advice, I think you should make .zip , .tar and just put links- For Odin: <link> , For flashing .zip: <link> because more thngs people have to do, more room for mistakes, it is easier for you to do it once.
Anyway great job.
Click to expand...
Click to collapse
Thanks ... I hope it solve your problems
I used internet cafe to upload the *.IMG file and ATM I have no good internet connection to re upload ... There are 2 chooses :
1- You should wait til I get a good net and upload zip version
2- You should do the steps and make zip ( choose base zip from my cwm 6.0.3.0 non bricked devices version ) and tar file then upload them ... I put in first post with full credits
there are few risk of bricked or ... if you do currectly risk is 0%
also I thing recovery should work fine because I got a really few errors so I must be really stable ! as stable as my previous cwm 6.0.3.0.
alireza7991 said:
Thanks ... I hope it solve your problems
Click to expand...
Click to collapse
Now we only need more patched ROMs.
1- You should wait til I get a good net and upload zip version
Click to expand...
Click to collapse
Dont want to take a piece of your cake now when all job is done, it can wait.
sava92ns said:
Now we only need more patched ROMs.
Dont want to take a piece of your cake now when all job is done, it can wait.
Click to expand...
Click to collapse
I can patch all custom kernels and ROMs to support eMMC bricked devices but I need some time because I am on exams
I didn't understand fully how this works? Do I need external card or this can be done with sdcard?
Is this mean that ROM needs to be installed on external card? What about internal memory? Can this be fixed, or it is lost forever?
TwinHeadedEagle said:
I didn't understand fully how this works? Do I need external card or this can be done with sdcard?
Is this mean that ROM needs to be installed on external card? What about internal memory? Can this be fixed, or it is lost forever?
Click to expand...
Click to collapse
hope you understand it:
Some users have already broken eMMC.
The problem is the data partition.
to get the roms working, one idea is to make a new data partition on the ext. sd. To be usable the roms need to be patched(the patch says to the rom / kernel that it has to look on ext. sd partition 2 for the data partition.
The next problem would be that a 'wipe data' in recovery or a flash would do something on the bricked data part. in internal sd. that wouldn't change anything(wipe data-after that no data is wiped).
This recovery solves the last mentioned problem
to your questions:
1) this is not a question
2) you need ext. card
3) no. (correct me if i'm wrong)
4) no question.
5) only one partition(data) of the int. card is lost forever
:victory:
Lei M said:
to your questions:
1) this is not a question
2) you need ext. card
3) no. (correct me if i'm wrong)
4) no question.
5) only one partition(data) of the int. card is lost forever
:victory:
Click to expand...
Click to collapse
I found this kinda funny.
Anyway, yes, we install ROM on the internal memory (/system and /cache partitions are working normally) but /data is on external SD card.
With 'normal' CWM trying to wipe /data throws some errors (khm....it is bricked) but with this one it is supposed to wipe /data on external, so I dont need to wipe it manually from my PC with partition manager (at least it should do that, havent tested yet) ...
sava92ns said:
I found this kinda funny.
Anyway, yes, we install ROM on the internal memory (/system and /cache partitions are working normally) but /data is on external SD card.
With 'normal' CWM trying to wipe /data throws some errors (khm....it is bricked) but with this one it is supposed to wipe /data on external, so I dont need to wipe it manually from my PC with partition manager (at least it should do that, havent tested yet) ...
Click to expand...
Click to collapse
not only, it should backup data from external sd i think... you could try this, if it works everything else should work
ktulu84 said:
not only, it should backup data from external sd i think... you could try this, if it works everything else should work
Click to expand...
Click to collapse
Ye, forgot about backup... nice. :good:
if you try let us know!
Inviato dal mio GT-I9001 con Topatalk 2
Why you afraid of trying this ? thats my cwm only with changes partition table ! The worst thing can be happen is that your phone gona stock at recovery boot animation and will fixed by flashing my normal cwm 6.0.3.2 from odin
I 99% confrim that this will work !
Is there any pathed ROM to work with this recovery? I have a friend that got this problem a month ago. Phone is in the drawer
TwinHeadedEagle said:
Is there any pathed ROM to work with this recovery? I have a friend that got this problem a month ago. Phone is in the drawer
Click to expand...
Click to collapse
This will work on ALL ROMS .. only you need to have an EXT4 data partition on extsd at mmcblk1p2
...........
Some news : I'm going to merge both pathced and normal one into One
I don't understand, what is mmcblk1p2, how to create this?
TwinHeadedEagle said:
I don't understand, what is mmcblk1p2, how to create this?
Click to expand...
Click to collapse
mmcblk1p2 is a partition on the extSD card, you have to create with a partitioning tool, it must be ext4, and you need a kernel to boot the rom from extSD, Ivendor provided a patch for his CM10 to work with data partition on extSD, refer to his thread, in the op he explained how to use it
TwinHeadedEagle said:
I don't understand, what is mmcblk1p2, how to create this?
Click to expand...
Click to collapse
Hope you understand this :
You must make a second partition on your external sd with ext4 format and at least 1.5GB size . you can use any partition tool ! then install this recovery , you can wipe data or fix permissions or mount data without any errors
Thanks
I have a friend with this problem, we installed the recovery and made ​​the ext4 partition on sd but when installing a rom does not pass the logo.
What rom and kernel install? some patch?
*
Thank you very much in advance for your work. excuse my bad English ..

[Q] Cant boot any type of Rom with an ext4 partition, why?

As the title says i've been using custom roms for almost 2 years now, im currently on 4.1 sense and i could never make the roms work with an ext4 partition, i always end up reverting to an ext 2 or 3 partition, nor am i able to boot with the new OC kernel versions with any kind of partitions. Is there info on the subject?
i saw a post saying that certain memory increasing scrypts+kernel3+ext4 could result in bootloops, but even without memory scrypt i end on bootloop. Would it work i i flashed a 2.6 kernel on an ext 4 partition?
noobexplorer said:
As the title says i've been using custom roms for almost 2 years now, im currently on 4.1 sense and i could never make the roms work with an ext4 partition, i always end up reverting to an ext 2 or 3 partition, nor am i able to boot with the new OC kernel versions with any kind of partitions. Is there info on the subject?
i saw a post saying that certain memory increasing scrypts+kernel3+ext4 could result in bootloops, but even without memory scrypt i end on bootloop. Would it work i i flashed a 2.6 kernel on an ext 4 partition?
Click to expand...
Click to collapse
new oc method doesn't work on every pico..I tried everything but no luck, make partition through recovery it's the best option & use mounts2sd. works for me.
noobexplorer said:
As the title says i've been using custom roms for almost 2 years now, im currently on 4.1 sense and i could never make the roms work with an ext4 partition, i always end up reverting to an ext 2 or 3 partition, nor am i able to boot with the new OC kernel versions with any kind of partitions. Is there info on the subject?
i saw a post saying that certain memory increasing scrypts+kernel3+ext4 could result in bootloops, but even without memory scrypt i end on bootloop. Would it work i i flashed a 2.6 kernel on an ext 4 partition?
Click to expand...
Click to collapse
Kernel 3 has some mounting problem with ext4 filesystem type partition.. you can try with kernel 2.6.. but for performance .. kernel 3.. anyday.. If I were you , id change my partition type to ext2.. its supposed to be faster than ext3..
Need urgent help
i had rooted my pico months back and was on different custom roms......now i want 2 get back to the stock rom which i have downloaded Odexed Stock ROM Flashable Zip (With Link2SD Support)(Revision 3)(http://forum.xda-developers.com/show...4&postcount=76) and i have flashed this rom 5 - 10 times and everytime i reboot after flashing the rom..(i have an 8 gb class 4 sd card which has an 512 mb ext3/4 partition)...i am stuck on htc boot logo.....can u plssssss help
scripts
noobexplorer said:
As the title says i've been using custom roms for almost 2 years now, im currently on 4.1 sense and i could never make the roms work with an ext4 partition, i always end up reverting to an ext 2 or 3 partition, nor am i able to boot with the new OC kernel versions with any kind of partitions. Is there info on the subject?
i saw a post saying that certain memory increasing scrypts+kernel3+ext4 could result in bootloops, but even without memory scrypt i end on bootloop. Would it work i i flashed a 2.6 kernel on an ext 4 partition?
Click to expand...
Click to collapse
Backup and partition your SD card using the latest CWM or TWRP recovery. Restore your data to the fat32 formatted partition. Then follow this tutorial: http://forum.xda-developers.com/showthread.php?t=2389501 (The int2ext script works on most custom roms, s2e doesn't support 4.3 roms yet).

Dual-Boot: SD Card & Internal ROM by Modifying Initramfs

HI there! Just wanna share about things I've done some time ago..
Background... :fingers-crossed:
I'm interested with ROM development & testing, but.. Ace 2 is my only primary phone which I really need for school things, poking friends *woah* and.. etc. Actually, I can make a CWM backup, flash the ROM and restore the backup after testing. But... seriously! It takes quite lot of time and... yeah.. since I'm testing ROM, I'll keep flashing & reflashing my phone and I get a little worried about its internal memory if I do it too often. So, I decided to make something that let me boot new ROM which I flash on the SD card & switch back to the previous ROM with just a simple reboot.. Yeay!
How it works?
I accomplished my goal by using modified initramfs which run after the kernel initialization and before any of Android system get loaded. It will mount 2nd partition of the SD card. If it find a file named enable_sdboot inside, it will decompress SD ROM's ramdisk.cpio which is stored in that partition, then boot the SD ROM. It will also delete enable_sdboot file immediately after checking, so internal ROM will get booted in next reboot.
Important notes:
SD ROM's ramdisk.cpio must contains modified fstab & some of .rc files, so it won't touch the internal ROM.
Kernel modules are placed on initramfs (/lib/modules), so it'll be easier to change ROMs or the kernel itself.
Limitations: because initramfs is compiled with the kernel, so internal & SD ROM will boot using same kernel.
Preparations
Prepare the Kernel
If you want to use stock ROM (codina) as ur internal ROM & CWM as ur recovery, you can use my precompiled kernel: codina-ace2nutzer-sdboot-stock-unsigned.zip which you can flash via CWM. If you use other internal ROM, you have to compile the kernel by yourself. If you're building Android ROMs, you can add my repo: nieltg/codina-initramfs-sdboot to your local manifest and read this guide. You can also take a look at this repo: nieltg/android_device_samsung_codina as an example.
If you build an out-of-tree kernel, you can follow these steps:
Create a folder named codinaramfs_dir in your kernel source.
Extract my initramfs intermediate: codina-sdboot-intermediates.zip to folder you've just created.
Replace boot.cpio with ur internal ROM ramdisk, so you can boot into it. You can also replace recovery.cpio with recovery system you would like to use.
Configure ur kernel & execute scripts/config --file .config --set-str CONFIG_INITRAMFS_SOURCE codinaramfs_dir/initramfs.list.
NOTE: .config is generated in output directory after configuring. If you change the output directory, you should modify the command before executing.
Compile and execute make INSTALL_MOD_PATH=codinaramfs_dir/modules modules_install to put modules in codinaramfs_dir/modules.
Modify codinaramfs_dir/initramfs.list to include all kernel modules in codinaramfs_dir/modules.
NOTE: I've specified the details in codinaramfs_dir/initramfs.list itself.
Then, recompile ur kernel.
Prepare an SD ROM & ur Device
You have to repartition ur SD card to store ur SD ROM. You also have to modify any ROM you want to install into ur SD card. ROM in SD card should not touch internal ROM. It should work independently. So, there are some modifications you must apply. There are things which you must ensure:
Any flashable zip you apply for the SD ROM extracts to SD partitions instead of internal.
Kernel is not going to be replaced after flashing any flashable zip.
SD ROM mounts appropriate SD partitions instead of internal partitions.
SD & internal ROM look for kernel modules in /lib/modules.
You can read this guide to prepare an SD ROM & ur device, to be exact, ur SD card.
----------
Well.. this is not good enough. You have to understand Linux, shell commands, compilation process, etc to apply this idea correctly. But of course if you're interested, you can help me improve this. Sorry for my English, I'm still studying. And like usual, I'm not responsible if you brick your phone, void your warranty, or any other pain or suffering you may feel as result of applying my idea. You do it all at your own risk!
Thanks to: @ace2nutzer for ur kernel, @Rox & @jereksel for the CWM I took from ur repo, @ishtiaque9 for ur support, everyone who interested with my idea & everyone..
So, anyone interested with my idea?
Seems great to run cm11 and cm12 at the same time
Very grateful idea !! :good:
Good that i've a sd 32gb Class 10 card.. so i can test finally CM12 from sdcard ... very nice job ! :good:
I'm glad to know my idea is being helpful!
@ace2nutzer woow! that's really big!
Actually, I'm using 2 Gb SD card which speed is 2x slower than the internal memory.. (tested using dd)
Quite slow.. but at least, it works.. but now i'm confused.. Is it slow because of the SD or because of my build? hahahaha
nieltg said:
I'm glad to know my idea is being helpful!
@ace2nutzer woow! that's really big!
Actually, I'm using 2 Gb SD card which speed is 2x slower than the internal memory.. (tested using dd)
Quite slow.. but at least, it works.. but now i'm confused.. Is it slow because of the SD or because of my build? hahahaha
Click to expand...
Click to collapse
Depends on class of sdcard.. Mine is class 10 = 10mb/s write speed. Read is as usual faster.. For me: 15 - 20 mb/s.
So u've probably only class 4 or 6.
The emmc in the Phone is class 10.
But of course a kernel can make it a bit faster or slower.. Depends on used config.
With my latest build + read_ahead_kb @ 512kb (writed on ramdisk on device_tunables) i've on ext. Sd card + emmc approxx. 12mb/s write speed
BTW: our Phone supports also 64gb cards.. And maybe even more...
This is a great idea ! I also need a dual boot stock / carbon (stock ROM includes eap sim and some other things I need)
What changes have to be made to use it on codinap (NFC) ?
Sent from my GT-I8160P using XDA Free mobile app
Really good idea, i think need to make an app, which can switch roms.
Maybe this sources will be usefull.
ace2nutzer said:
Depends on class of sdcard.. Mine is class 10 = 10mb/s write speed. Read is as usual faster.. For me: 15 - 20 mb/s.
So u've probably only class 4 or 6.
The emmc in the Phone is class 10.
But of course a kernel can make it a bit faster or slower.. Depends on used config.
With my latest build + read_ahead_kb @ 512kb (writed on ramdisk on device_tunables) i've on ext. Sd card + emmc approxx. 12mb/s write speed
BTW: our Phone supports also 64gb cards.. And maybe even more...
Click to expand...
Click to collapse
Hey.. I found something weird! I'm testing my storage with dd if=/dev/full of=tmp.file bs=1024576 count=10 in my cm-12 (sdboot) & I get:
7.5 Mb/s in /storage/sdcard1 (SD card)
27.55 Mb/s in mmcblk1p3 (SD card data partition)
85.47 Mb/s in mmcblk0p5 (internal data partition)
Hmm.. maybe the kernel caching mechanism that make it really fast?
Btw: I'm using ur kernel (commit d67aa9f) with audit enabled & sdboot modification
Mavireck said:
This is a great idea ! I also need a dual boot stock / carbon (stock ROM includes eap sim and some other things I need)
What changes have to be made to use it on codinap (NFC) ?
Click to expand...
Click to collapse
You should compile a kernel by yourself..
If you develop ROMs, you can include my repo in ur local manifests, modify boot.img (you can extract files from ur stock ROM) & compile to get an sdboot kernel.
If you're building out-of-tree kernel, I'm going to write a guide for it in the first post..
Kirya12347 said:
Really good idea, i think need to make an app, which can switch roms.
Maybe this sources will be usefull.
Click to expand...
Click to collapse
Hmm.. actually, I'm not really sure about that..
If you use this sdboot idea, all you have to do is write a file named enable_sdboot in 2nd partition of ur SD card to switch ROM.
For now, I'm using Terminal Emulator for that.. but it'll be nice to have a simple app which can do that in a single tap..
@nieltg
Why modified kernel not in archive. I download it without any expansion.
P.S. Sorry for bad eng.
Kirya12347 said:
@nieltg
Why modified kernel not in archive. I download it without any expansion.
P.S. Sorry for bad eng.
Click to expand...
Click to collapse
Actually, I just need to modify its initramfs, but initramfs is compiled with the kernel in codina.
So, I have to recompile the kernel to modify the initramfs.. Hmm.. what archive? Could you tell me more specific, please?
nieltg said:
Actually, I just need to modify its initramfs, but initramfs is compiled with the kernel in codina.
So, I have to recompile the kernel to modify the initramfs.. Hmm.. what archive? Could you tell me more specific, please?
Click to expand...
Click to collapse
I mean kernel isn't in flashable zip. It look , for exapmple, like init.d script, without any expansion
Kirya12347 said:
I mean kernel isn't in flashable zip. It look , for exapmple, like init.d script, without any expansion
Click to expand...
Click to collapse
Ohh I see! Actually, that is a raw kernel which you can install by dd-ing to /dev/block/mmcblk0p15..
I haven't thought about flashable zip before, since my idea isn't mature enough for me, I think.. Anyway, thank you for ur idea!
nieltg said:
Hey.. I found something weird! I'm testing my storage with dd if=/dev/full of=tmp.file bs=1024576 count=10 in my cm-12 (sdboot) & I get:
7.5 Mb/s in /storage/sdcard1 (SD card)
27.55 Mb/s in mmcblk1p3 (SD card data partition)
85.47 Mb/s in mmcblk0p5 (internal data partition)
Hmm.. maybe the kernel caching mechanism that make it really fast?
Btw: I'm using ur kernel (commit d67aa9f) with audit enabled & sdboot modification
Click to expand...
Click to collapse
This is a bit weird.. but maybe only achieved by dd ... But i mean with 12mb/s write speed when u're using the Phone .... Tested with:
https://play.google.com/store/apps/details?id=com.a1dev.sdbench&hl=en
As u can see in the Screeshots: only 7.57mb/s .. write speed even on internal SD .. .. if i remove all my kernel tweaks then it's the same ..
btw: u should update your sources from my repo .. that commit is of course great .. but actually since that commit i did some optimizations.. for more speed .. .. approx. + 400 Points on Antutu
ace2nutzer said:
This is a bit weird.. but maybe only achieved by dd ... But i mean with 12mb/s write speed when u're using the Phone .... Tested with:
https://play.google.com/store/apps/details?id=com.a1dev.sdbench&hl=en
As u can see in the Screeshots: only 7.57mb/s .. write speed even on internal SD .. .. if i remove all my kernel tweaks then it's the same ..
btw: u should update your sources from my repo .. that commit is of course great .. but actually since that commit i did some optimizations.. for more speed .. .. approx. + 400 Points on Antutu
Click to expand...
Click to collapse
Thank you! I've tested my SD card with that app in stock ROM and the result of internal & external SD are similar.. So, now I wonder, is my SD class 10? Hmm...
Btw, thank you for ur info! I'm going to recompile soon after finishing my final test.. :crying:
nieltg said:
Thank you! I've tested my SD card with that app in stock ROM and the result of internal & external SD are similar.. So, now I wonder, is my SD class 10? Hmm...
Btw, thank you for ur info! I'm going to recompile soon after finishing my final test.. :crying:
Click to expand...
Click to collapse
I hope you'll make flashable zip also
nieltg said:
Thank you! I've tested my SD card with that app in stock ROM and the result of internal & external SD are similar.. So, now I wonder, is my SD class 10? Hmm...
Btw, thank you for ur info! I'm going to recompile soon after finishing my final test.. :crying:
Click to expand...
Click to collapse
As i said, with a bad configured kernel u can reach only 7mb/s write speed even with class 10.
With read_aehead_kb 512 + good kernel u should have at least 10mb/s write speed with class 10.
personally i've 12mb/s write speed. on internal and ext-sd
Some ideas regarding the subj:
1. mount an images instead of repartition external sdcard
2. (1) can allow to use multiple ROMs.
1) it was just test, but it's quite possible. Right now I use an image file instead of /dev/block/mmcblk0p4 !
Before the all we need to create an image:
Code:
mkdir /storage/sdcard1/ROM
touch /storage/sdcard1/ROM/cache.bin
dd if=/dev/zero of=/storage/sdcard1/ROM/cache.bin bs=1024768 count=10
mke2fs -t ext4 -m 0 /storage/sdcard1/ROM/cache.bin
although, dd from original /dev/block/mmcblk0p4 is also possible.
2) secondly, init.samsungcodina.rc should be edited as follows
Code:
(init.samsungcodina.rc listing)
...
on property:sys.boot_completed=1
write /sys/class/misc/backlightnotification/enabled 0
write /sys/kernel/mm/uksm/run 1
exec /system/xbin/mknod /dev/block/loop250 b 7 250
exec /system/xbin/sleep 5
exec /system/xbin/losetup /dev/block/loop250 /storage/sdcard1/ROM/cache.bin
exec /system/xbin/mount -t ext4 /dev/block/loop250 /cache
3) line with /cache should be commented in fstab
4) now you can check it:
Code:
mount
and get output like:
...
/dev/block/loop250 /cache ext4 rw,seclabel,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
Click to expand...
Click to collapse
Maybe later I'll continue to work on it.
Any chance that this would be a feature in your kernel @ChronoMonochrome @ace2nutzer?
Sent from my GT-I8160 using Tapatalk
shaqman89 said:
Any chance that this would be a feature in your kernel @ChronoMonochrome @ace2nutzer?
Sent from my GT-I8160 using Tapatalk
Click to expand...
Click to collapse
Actually, repartition extsdcard is too painful for me, I simply don't have enough space on hard drive(not that it's small, but it's always nearly full ) to backup those ~30 Gb data on extsdcard :/ I can add multirom support only if I'll finish my idea, that I posted here.
Kirya12347 said:
I hope you'll make flashable zip also
Click to expand...
Click to collapse
Sure.. I'm going to create that after my final exam...
ace2nutzer said:
As i said, with a bad configured kernel u can reach only 7mb/s write speed even with class 10.
With read_aehead_kb 512 + good kernel u should have at least 10mb/s write speed with class 10.
personally i've 12mb/s write speed. on internal and ext-sd
Click to expand...
Click to collapse
Ohh.. I see.. really sorry for my misunderstanding!
Okay, the fact is I've compiled ur updated kernel source (commit: e59fb17) before my final exam.. hahaha.. n I get better read speed: ~25 Mb/s on internal & ~17 Mb/s on external.. thx!
dunno why.. I still don't get much improvement about the write speed.. because they're nearly full maybe? or because I'm testing on stock ROM.. hmm...
ChronoMonochrome said:
Some ideas regarding the subj:
1. mount an images instead of repartition external sdcard
2. (1) can allow to use multiple ROMs.
Click to expand...
Click to collapse
Thank you very much for ur brilliant idea! If I read this post before, I wouldn't just return my friend's card reader this morning to clean up partitions I've made in my SD.. hahaha
Okay.. just wanna write down my idea that popped from my mind after reading ur post..
How about place all ROMs in directories, like this:
/storage/extSdCard/ROMs
/storage/extSdCard/ROMs/slot1 contains system, data n ramdisk.cpio for ROM 1
/storage/extSdCard/ROMs/slot2 contains system, data n ramdisk.cpio for ROM 2
/storage/extSdCard/ROMs/slotN...
and create symlink to the appropriate slot directory to boot SD ROM, for example: to boot ROM 1, create symlink /storage/extSdCard/.sdboot_slot to ROMs/slot1, etc? Much better than typing this long command: cd /tmp; mkdir l; mount -t ext4 /dev/block/mmcblk1p2 l; cd l; echo > enable_sdboot; cd ..; umount l; each time when I want to boot the SD ROM..
Okay.. time to study again.. I'm going to think about this idea after my exam..

Categories

Resources