is there any way to change the kernel on nand based roms ,or we ned recovery
i have test to change with MDJ S8.0 but no boot after (kernel error message in red)
when you try to change the .ko files in system/lib/modules and change the Zimage (with root explorer) is it not good...i think the Zimage change for this "nand" version
but if you look on cyanogenMod you can see it's oc ....peraps the files on the cyanogenMod are good for other Nand rom (i use the gauner1986 hd-fi nand 0.2 for the moment) if one is on a cyanogenMod nand rom i can test if he send me the files (Zimage (in system) and the .ko files in system/lib/modules)
I've flashed Dharam's Stock Performance ROM. It has Fugumod kernel (etc/init.d support) and ZiplAlign, RamHack, etc...
But when I wanted to find the ZipAlign's log file I haven't found anything. There is a line in the zipalign script:
"LOG_FILE=/data/zipalign.log"
So it supposed to be "somewhere" a "zipalign.log" file. But there is no any zipalign.log, so there is no zipaligning at startup, so you can put any script in the folder "etc/init.d", it won't do anything... Right?
Or how can I check that the init.d scripts worked or not? And if the zipalign script didn't do anything, how I can get it work?
SRQ642 said:
I've flashed Dharam's Stock Performance ROM. It has Fugumod kernel (etc/init.d support) and ZiplAlign, RamHack, etc...
But when I wanted to find the ZipAlign's log file I haven't found anything. There is a line in the zipalign script:
"LOG_FILE=/data/zipalign.log"
So it supposed to be "somewhere" a "zipalign.log" file. But there is no any zipalign.log, so there is no zipaligning at startup, so you can put any script in the folder "etc/init.d", it won't do anything... Right?
Or how can I check that the init.d scripts worked or not? And if the zipalign script didn't do anything, how I can get it work?
Click to expand...
Click to collapse
its wrkin for me with fugumod ultra & 2.4beta... I use dis for underclocking cpu at d start up & prevent freezing..
Sent from my GT-I5800 using Tapatalk
I've figured out that the scripts have to be named like S* (e.g., S01_myscript, S02_zipalign)...
"------ Note for startups scripts
- Put your script in /system/etc/init.d
- Scripts with Filename starting with E* (earlystartup scripts) are executed before script with filename starting with S* (users scripts)
- Scripts are executed before playlogo and after init.rc"
from http://forum.xda-developers.com/showthread.php?t=997367
Hi everyone, I'm looking for a little help in booting a custom linux kernel on the Acer Iconia a500 with an initrd (not an initramfs, and the distinction is important). I'm working on building an ARM version of the Porteus Linux OS, which is a slackware-based linux-live distribution.
I have compiled a custom kernel based on sp3_dev's 2.6.38 kernel sources, added a patch for aufs, compiled in support for XZ compression, squashfs and a few other things, and I can get this system to boot into a functional GUI using an initramfs that I've embedded into the kernel (it looks like this is how other folks are using a ramdisk). However, Porteus typically uses an initrd to set up the live filesystem, and moving to an initramfs will require rewriting a number of scripts and maintaining them separately from the x86 tree. I have tried booting with an initrd in a number of ways, and have failed each time and google/xda searches have not yielded a solution. I've packaged my zImage and initrd.xz with mkbootimg and flashed it to mmcblk0p1 to dual boot linux with android, and tried hard-coding a number of calls for initrd in the kernel cmdline, such as, "initrd=/dev/mmcblk0p1/intird.xz", "initrd=/initrd.xz", "initrd=0x11000000,16M" all to no avail.
So, my question is this: is there any way to get the kernel to load an initrd (which is not embedded in the kernel itself) without replacing the stock bootloader? I'd prefer to keep the installation easy and low-risk for other users.
Thanks for your time, and many thanks to the devs who have been contributing to getting native Linux on the Iconia! Your threads have been an invaluable resource.
-Ahau
And I am trying making something similar,but I'm want make initrd who boots from internal storage like tf101 kernel, and I can't make kernel working with initrd , I'm using netham's initrd source and guide http://forum.xda-developers.com/showthread.php?t=1158260&page=24 , when I compiled the kernel and make boot.img then it says - kernel panic, can't find initrd... . My question is - what format initrd should be .cpio, .img, .gz... if it doesn't matter, then what kernel command should be in boot options to kernel .config. sorry for bad English.
Thanks, Tautvaldas. If you are following netham's instructions, you are using an initramfs that is built into the kernel. You can either specify a cpio/gzipped archive in the kernel config (CONFIG_INITRAMFS_SOURCE) or point it to a directory containing the files and subdirectories you want inside your initramfs and the compiler will cpio and compress it at build time. I use the second approach as it saves the steps involved in creating the cpio image and gzipping it. Once you've done this, I don't believe you need to specify an initrd in CONFIG_CMDLINE. The initramfs is then contained inside zImage, so when you generate the new "recovery.img" with mkbootimg, you still point -initrd to /dev/zero.
To clarify, an initramfs (probably named something like initrd.gz) is both a cpio archive and gzip compressed. Google 'initrd cpio' for more on how to extract and compress them.
HTH
worked-around
Well, I didn't sort out how to load an initrd directly, but a friend did find a script for me that can be used in an initramfs and make it look (and work) like an initrd. In case anyone else runs into this issue, here's the relevant portions of the script:
# Build a ramdisk and copy ourselves over, so we look like an initrd
mke2fs -m 0 /dev/ram0 >/dev/null 2>&1
mount -t ext4 /dev/ram0 /mnt
for item in /*; do [ "$item" != "/mnt" ] && cp -a $item /mnt; done
mkdir /mnt/mnt
# Transfer control to linuxrc as an initrd would
exec switch_root -c /dev/console /mnt /linuxrc $*
Hi all.
I'm try porting mainline linux kernel to i9100.
Current kernel have working:
wifi
lcd
touchscreen
bluetooth
emmc
sdcard
charger
usb otg
Sources for kernel -
https://github.com/Sekilsgs2/i9100_kernel_mainline_port.git
Sources for custom uboot for proper run this kernel -
https://github.com/Sekilsgs2/i9100-uboot.git
Toolchain for u-boot -
https://github.com/Sekilsgs2/toolchain_for_old_uboot.git
For compiling kernel use debian or ubuntu x64 with arm-none-eabi toolchain:
1. export ARCH=arm
export CROSS_COMPILE=arm-none-eabi-
2. make i9100_defconfig
3. make -j6
4. ./mk.sh
5. ./mod.sh
after we have boot.img in kernel dir - kernel image for uboot.
How run this kernel and u-boot how-to:
https://forum.xda-developers.com/galaxy-s2/general/uboot-bootloader-true-multiboot-t1680898
u-boot from my github have boot menu, ext4 support- can use volup voldown and home keys to running custom script from defined menu.
menu defined in
include/configs/galaxys2.h file
Code:
"menucmd=bootmenu\0" \
"bootmenu_0=Run kernel from recovery=run galaxy_boot\0" \
"bootmenu_1=Internal eMMC=run galaxy_boot_emmc\0" \
"bootmenu_2=Internal eMMC Safe=run galaxy_boot_safe\0" \
"bootmenu_3=External SD card=run boot_sdcard\0" \
"bootmenu_4=U-Boot boot order=boot\0" \
"bootmenu_delay=30\0"
For run wifi with brcmfmac:
Get stock bcmdhd_sta.bin and put to rootfs - /lib/firmware/brcm/brcmfmac4330-sdio.bin
Get stock nvram_net.txt and put to rootfs - /lib/firmware/brcm/brcmfmac4330-sdio.txt
wifi chip bcrm4330 have 5ghz support to enable this - edit nvram file - add "aa5g=1" after "aa2g=1"
Thank @sp3dev for u-boot and how-to.
Holy ****!
My first real smartphone!
Great work!
I am trying to mod the zImage, because I need to add 666000 as a avilable CPU frequency in "scaling_avilable_frequencies" without luck, I am running an A10e with termux, thats running Ubuntu (arm) that also has abootimg installed, any help?