![]() |
Re: Booting Maemo 5 from mmc card on N900
Ideally you should also be calling /sbin/preinit on the new rootfs, not /sbin/init. In bootmenu, I'd have used ITEM_LINUXRC to run a certain script to set up the environment for me, pivot root and exec /sbin/preinit.
|
Re: Booting Maemo 5 from mmc card on N900
MMC rootfs was mounted read-write (otherwise how could I even save output to files on it?).
I was playing with the device while only /usr was moved to mmc. Performance in some applications that use a lot of memory (browser, maps) was awful. Reducing swappiness (/proc/sys/vm/swappiness) from 100 to the kernel default 60 helped a little (swap was also on mmc). |
Re: Booting Maemo 5 from mmc card on N900
Im a little bit into linux, but not as much as you are. Where do i start to read (learn) ? Where is the thread for bootload or can i direct download that ?
|
Re: Booting Maemo 5 from mmc card on N900
Does anyone know what the correct CONFIG_CMDLINE is to boot from the external mmc on the n900?
Here is the default Code:
CONFIG_CMDLINE="init=/sbin/preinit ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs rootflags=bulk_read,no_chk_data_crc rw console=ttyMTD,log console=tty0" Code:
CONFIG_CMDLINE="root=/dev/mmcblk0p3 rw rootdelay=5 console=ttyMTD,log console=tty0" Any help would be great Thanks |
Re: Booting Maemo 5 from mmc card on N900
try root=MMmm hexadecimal notation, I guess there isn't /dev/whatever parser in kernel for all devices. At least N8x0/770 kernel uses root=1f03 for third mtd partition, mmcblk0p3 could be b303 (major 179, minor 3)
also init=/sbin/init (or whatever you use) might be good just in case and BTW, you can install bootmenu if you don't mind booting initial code from internal flash and pivot_root-ing to new root a bit later, no kernel changes needed then |
Re: Booting Maemo 5 from mmc card on N900
Quote:
Thanks |
Re: Booting Maemo 5 from mmc card on N900
So did anyone successfully did it? If so can you please post detailed steps to Boot from my 16gb MMC? I would like to partition mine as 8gb VFAT, 7 plus gb for ext2 and the rest for swap.
Thanks in advance. |
Re: Booting Maemo 5 from mmc card on N900
Quote:
|
Re: Booting Maemo 5 from mmc card on N900
Quote:
# /bin/mount /home || echo "Failed to mount /home partition." |
Re: Booting Maemo 5 from mmc card on N900
Quote:
|
All times are GMT. The time now is 08:05. |
vBulletin® Version 3.8.8