Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No EXT4 Support In Kernel #2

Open
jasonherald opened this issue Feb 2, 2012 · 6 comments
Open

No EXT4 Support In Kernel #2

jasonherald opened this issue Feb 2, 2012 · 6 comments

Comments

@jasonherald
Copy link

I hope this helps:

I added the ext4 flags (See Below) to the kernel config to support the make otapackage for the aosp build (master).
-- The default updater script that is generated has the following lines:
format("ext4", "EMMC", "/dev/block/mmcblk0p12", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");

Without kernel ext4 support the /system directory will not be mounted on boot making the system hang at the M and providing the error "/system/bin/sh cannot be found" if you try to run adb commands.

Flags:
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y

@jokersax
Copy link
Member

jokersax commented Feb 2, 2012

Thanks

@jasonherald
Copy link
Author

Just as an FYI, after adding these flags the ramdisk has each mount element /data, etc listed as ext4 partitions. I had to modify this in the framework to resolve it or change the update_script to format the partitions ext4.

Thanks for providing this btw. This is the best kernel I have found for the atrix.

@jokersax
Copy link
Member

jokersax commented Feb 2, 2012

the update script gets its format options based on the recovery files in android_device_moto_olympus. so if that says ext3 then it will be ext3 etc

@jokersax
Copy link
Member

jokersax commented Feb 2, 2012

also this is a sunfire kernel. so the defconfig has the ext4 flags but the sunfire recovery doesnt support ext4 in system yet. thats why it was set at ext3 for the olympus

@jasonherald
Copy link
Author

The last compile I had it as ext3 for /data but the init.rc still come up as ext4 in the final build. I didn't have alot of time last night to troubleshoot further but I am jumping back on it tonight.

@jasonherald
Copy link
Author

Good deal. I will fork one off for atrix if that would be more appropriate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants