The Following 12 Users Say Thank You to peterbjornx For This Useful Post: | ||
|
2012-04-17
, 22:08
|
|
Posts: 1,918 |
Thanked: 3,118 times |
Joined on Oct 2010
@ My pants
|
#2
|
|
2012-04-17
, 22:14
|
Posts: 40 |
Thanked: 144 times |
Joined on Mar 2012
@ Oldenzaal, The Netherlands
|
#3
|
The Following User Says Thank You to peterbjornx For This Useful Post: | ||
|
2012-04-17
, 22:16
|
|
Posts: 1,918 |
Thanked: 3,118 times |
Joined on Oct 2010
@ My pants
|
#4
|
The only real down side (for now, i am not really into linux kernel development but maybe someone finds the bug) is the kernel panic when somehow the MMC driver forces cpufreq to switch clock speed, and it panics in set_frequency or something, so i had to disable cpufreq , which means battery life sucks and no overclocking either
|
2012-04-17
, 22:19
|
Posts: 40 |
Thanked: 144 times |
Joined on Mar 2012
@ Oldenzaal, The Netherlands
|
#5
|
|
2012-04-17
, 22:21
|
Posts: 40 |
Thanked: 144 times |
Joined on Mar 2012
@ Oldenzaal, The Netherlands
|
#6
|
|
2012-04-17
, 22:21
|
Posts: 1,326 |
Thanked: 1,524 times |
Joined on Mar 2010
|
#7
|
|
2012-04-17
, 22:26
|
Posts: 40 |
Thanked: 144 times |
Joined on Mar 2012
@ Oldenzaal, The Netherlands
|
#8
|
The Following User Says Thank You to peterbjornx For This Useful Post: | ||
|
2012-04-17
, 22:33
|
|
Posts: 1,918 |
Thanked: 3,118 times |
Joined on Oct 2010
@ My pants
|
#9
|
Not with the steps described in this guide, this still relies on the eMMC for data and application storage, the SD card only replaces the rootfs,
the eMMC location is hardcoded into quite a lot of scripts and configuration files, moving it to a sd card would be a lot of work
|
2012-04-17
, 22:38
|
Posts: 40 |
Thanked: 144 times |
Joined on Mar 2012
@ Oldenzaal, The Netherlands
|
#10
|
DISCLAIMER: THIS GUIDE CAN POTENTIALLY BRICK YOUR PHONE, THE AUTHOR IS NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR PHONE
Introduction:
In this guide i will explain how to move Maemo from the internal flash to the SD card, this guide is based on what i did to unbrick my phone so it might not be 100% accurate as my success in it was mostly trial-on-error, however , the steps in this guide ARE correct, of that i am sure, it might just be that i forgot something,
Benefits:
Requirements:
Steps:
Step 0 - Clean eMMC:
If the N900 /home partition contains optified apps/Maemo programs, you will need to format/reflash eMMC, this can be done through flashing a new eMMC image or through the devices x-terminal.
If you dont do this, the phone might get stuck at the bootscreen!
Step 1 - Partitioning SD card:
If using U-Boot, you need to create a small (a couple of MB's) FAT16 (msdos) partition before the main partition
Either way, you now need to format the main partition ext3 and mount it somewhere on your development machine
Step 2 - Mounting root filesystem:
Either enter these commands one by one or make it a script:
Use the following command for this, -r will make cp recurse into directories, -p will make it preserve ownership and access masks.
Use your preferred ARM (GNU EABI) toolchain for this, or use scratchbox, you need to use the default config for the N900 (rx51_defconfig), and make the following changes:
- Built in ext3 filesystem
- Built in MMC subsystem
- Built in OMAP MMC host driver (The one already set to module)
- Command line: "/dev/mmcblk0p<PARTITION> rootwait rw init=/sbin/preinit" (Partition is 1 for flasher boot and 2 for U-Boot users)
- Disable cpufreq or build as module. (WORKAROUND for kernel panic when combining mmc and cpufreq)
- (Only for extra debugging) Framebuffer console built in
Now build the kernel and modules, install modules to the sdcard's /lib/modules/<KERNEL_NAME>'Step 5 (U-Boot) - Configuring U-Boot
First you need to turn your kernel into an U-Boot kernel image:
Put your N900 into flashing mode and run:
Unmount all SD card partitions and put it in your phone, it should boot into Maemo, to verify that it has worked, open xterm and enter df -h, it should show a significantly larger rootfs!
Credits:
x86 - rootfs mount guide
DocScrutinizer and other people from #maemo - Helping me fix some problems with this
Last edited by peterbjornx; 2012-04-17 at 22:32.