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

Preparing as secondary #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iamsubhranil
Copy link

@iamsubhranil iamsubhranil commented Aug 8, 2016

No description provided.

The main reason sailfish doesn't boot as a secondary is the lack of finding it's original /system of cm12.1. Sailfish wasn't meant for a secondary ROM. So what it does on boot is always mounting mmcblk0p23 via system.mount. That block however, always contains /system of the primary ROM. For the mismatch of expected and found /system, HAL doesn't get initialized in the way it should, and that's why we got no change from the splash screen when we boot exactly the same sailfish as secondary. That's why we're tweaking the way Sailfish mounts /system here. MultiROM also, is made for an universal /system configuration. Not the chroot type config Sailfish uses. So it always mounts the secondary ROMs /system to the root /system. We're  binding those two and deleting */system.mount's for the sake of booting as a secondary ROM.
@adeen-s
Copy link
Owner

adeen-s commented Aug 9, 2016

I don't think these files belong here. It could be either directly written to /boot.
Could you kindly check if /boot is mounted as rw or ro?

@iamsubhranil
Copy link
Author

It's required for MultiROM at boot up. Everything happens after, happens after this script has run. And i just edited the script and added the fstab. You can't do anything before MR finds fstab and run main_init. So technically, these files are needed at /boot.

@adeen-s
Copy link
Owner

adeen-s commented Aug 9, 2016

That's correct but what I meantsay to was that these files do not belong here. They belong in my droid-config-wt88047 repository. The sparse folder there represents the root folder of sailfish.
All that's needed now is to check if /boot is mounted as ro or rw.

@iamsubhranil
Copy link
Author

Telling you after a boot to it.

@iamsubhranil
Copy link
Author

/dev/mmcblk0p30 on / type ext4 (rw,noatime,data=ordered)
/dev/mmcblk0p30 on /data type ext4 (rw,relatime,data=ordered)
/dev/mmcblk0p30 on /system type ext4 (rw,relatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=893704k,nr_inodes=147846,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
sysfs on /sys type sysfs (rw,relatime)
proc on /proc type proc (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,relatime,size=970164k,nr_inodes=155356)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=970164k,nr_inodes=155356,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,size=970164k,nr_inodes=155356,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/bfqio type cgroup (rw,nosuid,nodev,noexec,relatime,bfqio)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,size=970164k,nr_inodes=155356)
tmpfs on /mnt/obb type tmpfs (rw,relatime,size=970164k,nr_inodes=155356,mode=755,gid=1000)
tmpfs on /mnt/asec type tmpfs (rw,relatime,size=970164k,nr_inodes=155356,mode=755,gid=1000)
mtp on /dev/mtp type functionfs (rw,relatime)
/dev/mmcblk0p25 on /persist type ext4 (rw,nosuid,nodev,noatime,nodiratime,nobarrier,noauto_da_alloc,data=ordered)
/dev/mmcblk0p1 on /firmware type vfat (ro,relatime,uid=1000,gid=1026,fmask=0337,dmask=0227,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
statefs on /run/state type fuse.statefs (rw,nosuid,nodev,relatime,user_id=0,group_id=998,default_permissions,allow_other)
statefs on /run/user/100000/state type fuse.statefs (rw,nosuid,nodev,relatime,user_id=100000,group_id=100000,default_permissions,allow_other)
/dev/fuse on /mnt/shell/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/mmcblk1p1 on /media/sdcard/18E4-250B type vfat (rw,nosuid,nodev,noexec,noatime,dirsync,uid=100000,gid=100000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,flush,errors=remount-ro,discard)

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

Successfully merging this pull request may close these issues.

2 participants