maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Upgrading (https://talk.maemo.org/forumdisplay.php?f=8)
-   -   Booting from MMC on N800 Now Available!! (https://talk.maemo.org/showthread.php?t=4053)

fanoush 2007-02-05 19:44

Re: Booting from MMC on N800 Now Available!!
 
yes, mtd3 is initfs, mtd2 kernel, mtd1 config partition (where flasher flags - r&d mode, lifeguard reset flag,.... and possibly also device specific configuration like wlan and bt MAC address are stored). mtd0 is bootloader (maybe few layers of them)

boot process is

1. some early boot loader directly on omap chip with nand flash chip driver
2. one or more bootloaders in /dev/mtd0 which initialize higher level hardware (video chip at least) and provides flashing support over USB and in normal situation just loads linux kernel from mtd2
3. linux kernel (with jffs2 driver) with root device set to mtd3 (=initfs)
4. /linuxrc in (uclibc based) initfs which starts dsme, bme (battery management) and loads firmware to wlan and bt chips and finally reads root device from config partition, mounts it, then changes root to it via pivot_root (i.e. exchages / and /mnt/initfs mount points) and runs /sbin/init
5. /sbin/init runs normal /etc/rc* scripts


what is possible is to hack kernel in mtd2 to
1. boot something else then initfs in mtd3 (i.e. directly some mmc partition) - looks like the easy one

and/or

2. allow to load and jump to different kernel (from mmc) - this is the harder one but already implemented in LAB (Linux As Bootloader) in handhelds.org CVS

Arch 2007-02-06 00:50

Re: Booting from MMC on N800 Now Available!!
 
Hi can anyone tell me if it is possible to repartition SD/MMC card in the N800 if you do not have linux PC and/or a card reader. I have tried following

http://maemo.org/maemowiki/ExtendedR...ht=%28fdisk%29

and although cfdisk is not in the same place it does not work. As I have stated before I am new to Linux and am learning slowly. I have searched here and the web but cannot find a useable solution so far. Thanks in advance for any pointers.

Regards

Arch

Milhouse 2007-02-06 02:32

Re: Booting from MMC on N800 Now Available!!
 
Can't be done on the N800 as cfdisk was only ever ported to OS 2005. You'll need a Linux PC and cfdisk or sfdisk to partition the SD/MMC cards. As long as you have access to a PC, even a Windows PC, your best bet would be to download a LiveCD ISO (eg. DSL - Damned Small Linux) and boot from it. You may also find the LiveCD useful when it comes to flashing your N800 with updated firmware as the Linux flasher has far more functionality than the Windows flasher.

freeman 2007-02-06 06:17

Re: Booting from MMC on N800 Now Available!!
 
Well you could get by w/o the card reader, you can use your N800 as a reader when your card isn't inuse. And I recommend using a LiveDVD linux if you are a PC guy. The true is you can get by w/ a LiveCD, but something might came up short w/ it. Also, if you an old HD laying around, and your PC is decent enough, grab a USB chassis for like $15-20 buck, and slap the linux on there, compile your own kernel, and voila, you got your own external USB HD w/ linux on it.

fanoush 2007-02-06 07:49

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by freeman (Post 33490)
Well you could get by w/o the card reader, you can use your N800 as a reader when your card isn't inuse.

Are you sure? I guess it makes available only specific partition from the card, not whole card. So you can't partition since you don't see partition table from PC.

This may work (have not tried)
http://sebas-nokia770.blogspot.com/2...ithout-pc.html

freeman 2007-02-06 08:23

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by fanoush (Post 33494)
Are you sure? I guess it makes available only specific partition from the card, not whole card. So you can't partition since you don't see partition table from PC.

This may work (have not tried)
http://sebas-nokia770.blogspot.com/2...ithout-pc.html

I'm pretty sure it work, w/ certain condition.
1. you have to boot off the flash, can't boot off the mmc w/ that.
2. the card cannot be inuse, that mean, no swap partition or swap file on the card either. Then, the system will work.
How would I know, well at least it will work on n800, cuz I don't have an SDHC card reader. But I manage to get the setup on my 8GB SDHC card.
On windows, you might only see the fat partition, but on linux, you see the whole thing. w/ 1 problem though, after any change to the partition, you have to reboot your nokia IT unit, otherwise the system won't see the change.

tolou 2007-02-06 08:32

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by Arch (Post 33464)
Hi can anyone tell me if it is possible to repartition SD/MMC card in the N800 if you do not have linux PC and/or a card reader.

Yes indeed you can :) , using sfdisk, done it myself:
http://www.internettablettalk.com/fo...disk#post20172

sebastian.linux 2007-02-06 11:48

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by Arch (Post 33464)
Hi can anyone tell me if it is possible to repartition SD/MMC card in the N800 if you do not have linux PC and/or a card reader. I have tried following

http://maemo.org/maemowiki/ExtendedR...ht=%28fdisk%29

and although cfdisk is not in the same place it does not work. As I have stated before I am new to Linux and am learning slowly. I have searched here and the web but cannot find a useable solution so far. Thanks in advance for any pointers.

Regards

Arch

Hi Arch. I've just done it, this very last weekend. I've got a Linux PC, but haven't got a card reader. Besides, I liked the idea of doing everything from the 770 device, without using PC.

Yes, I wrote this link:
http://sebas-nokia770.blogspot.com/2...ithout-pc.html

But it only explains how to do the partition. It doesn't go on with the rootfs mounting on the mmc card. If you wait till tomorrow, I'll update the WIKI so that everyone can extend their rootfs to the mmc (as I've already done on my 770) without PC and without complicated tricks.

Everything is based on excellent Fanoush's binaries and procedure. Wait just one day more and you'll be able to safely complete the whole process. I haven't just had time enough to update the Wiki. Besides, I was waiting a couple of days to be sure everything worked fine. And it does.

Thanks to Fanoush.

sebastian.linux 2007-02-07 05:13

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by Arch (Post 33464)
Hi can anyone tell me if it is possible to repartition SD/MMC card in the N800 if you do not have linux PC and/or a card reader. I have tried following

http://maemo.org/maemowiki/ExtendedR...ht=%28fdisk%29

and although cfdisk is not in the same place it does not work. As I have stated before I am new to Linux and am learning slowly. I have searched here and the web but cannot find a useable solution so far. Thanks in advance for any pointers.

Hi Arch. I've finally got it. You may look at it in Maemo Wiki:
http://maemo.org/maemowiki/HowTo_EAS..._From_MMC_card

Or if you only want to learn how to partition the MMC:
http://maemo.org/maemowiki/HowTo_EAS..._your_MMC_card

It's been tested on N770. I think it also works for N800. Please let me know.

Salut.
Sebas.

fanoush 2007-02-07 08:16

Re: Booting from MMC on N800 Now Available!!
 
Nice howto :-)

as for sfdisk there is also option -uM which according to man page does "Accept or report in units of megabytes. The default is cylinders, at least when the geometry is known." With this the partition size specification may be a bit easier. Not tried if it works.

mrp 2007-02-07 09:25

Re: Booting from MMC on N800 Now Available!!
 
I have a 512 mmc, arranged to boot from mmc-80MB FAT rest for EXT2. Strange behaviour takes place with internettablettalk.com. All text appears in "lego blocks". Have tried with diferent encodings. Even formatted my ext2 and rearranged the mmc boot. same thing. If I boot from flash all texts are fine. Any ideas?

fanoush 2007-02-07 10:10

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by mrp (Post 33675)
All text appears in "lego blocks". Any ideas?

Yes. https://maemo.org/bugzilla/show_bug.cgi?id=838

Or did you used GNU tar for cloning as suggested in every guide and it still happens?

mrp 2007-02-07 10:56

Re: Booting from MMC on N800 Now Available!!
 
unfortunately I did not know of the problem with rsync. Going to do it one more time, this time with tar. Thank you for your help,
Mika

BTW. Nokia has announces a revision for mediastreamer, including video streaming. Have not tried yet

jayholler 2007-02-16 06:16

Re: Booting from MMC on N800 Now Available!!
 
Does anyone have a bootmenu.conf file to share that works on the N800? I followed the instructions, got gnu/tar from penguinbait.com using wget, and cloned the entire system after making the appropriate partitions and formatting them, with the required reboots in between. The bootmenu works fine, but the system just hangs when trying to boot the file system from the SD card on /dev/mmcblk1 (and yes, I altered the examples in the appropriate places to indicate the appropriate card and directory). I don't understand what went wrong, but for now I gave up after mutliple attempts have failed. The only thing I didn't follow was that I had already installed a bunch of apps before doing this, so that might have screwed the pooch. I figure I'll give it another try next time I flash the system with a clean image. If anyone has any suggestions or anything, I'm all ears.

fanoush 2007-02-16 17:44

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by jayholler (Post 35058)
The bootmenu works fine, but the system just hangs when trying to boot the file system from the SD card on /dev/mmcblk1 (and yes, I altered the examples in the appropriate places to indicate the appropriate card and directory).

can you post your not working entry?

Quote:

Originally Posted by jayholler (Post 35058)
The only thing I didn't follow was that I had already installed a bunch of apps before doing this, so that might have screwed the pooch.

Shouldn't matter, if it boots from flash then it should boot from mmc too. It is better to clone clean system since you have clean backup and you can be sure the system works but otherwise it doesn't matter.
Quote:

Originally Posted by jayholler (Post 35058)
If anyone has any suggestions or anything, I'm all ears.

Check if you have /dev/mmcblk1pX files in initfs. But not when system is already booted since /dev is overlayed with tmpfs filesystem. Remount initfs somewhere else and look into /dev/

Code:

mount -t jffs2 /dev/mtdblock3 /opt/
ls -l /opt/dev/

Do you see device file for your boot device? If not, that's the problem.

fanoush 2007-02-16 18:06

Re: Booting from MMC on N800 Now Available!!
 
just had a look and partitions 1 and 2 are there for both cards

Code:

brw------- 0/0        0 2006-12-19 17:56:30 ./dev/mmcblk0p1
brw------- 0/0        0 2006-12-19 17:56:30 ./dev/mmcblk0p2
brw------- 0/0        0 2006-12-19 17:56:30 ./dev/mmcblk1p1
brw------- 0/0        0 2006-12-19 17:56:30 ./dev/mmcblk1p2

So unless you boot from /dev/mmcblk1p3 the problem is somewhere else

jayholler 2007-02-16 18:41

Re: Booting from MMC on N800 Now Available!!
 
Here is my bootmenu.conf file, to boot from mmcblk1p2, which is ext2. mmcblk1p1 is fat16, at 480MB.

Quote:

# bootmenu customisation file
#
# included from bootmenu.sh after default menu is defined
# you can change some items or redefine menu completely

# timeout for automatic selection when no key is pressed
# set to -1 for no timeout (not recommended, can drain battery when device reboots unatteded)
MENU_TIMEOUT=30

# menu items
MENU_MIN=1 # first item index

#no need to redefine
#MENU_1_NAME="Internal flash"
#MENU_1_ID="flash"

MENU_2_NAME="External MMC card, partition 2 (stable), ext2"
MENU_2_ID="mmc1"
MENU_2_DEVICE="mmcblk1p1"
MENU_2_MODULES="mbcache ext2"
MENU_2_FSTYPE="ext2"
MENU_2_FSOPTIONS="defaults,noatime"

MENU_3_NAME="Power off (when not on charger)"
MENU_3_ID="off"

#last item index, change if you add/remove items
MENU_MAX=3
I know that the menuID references mmcblk1p1, but this was after p2 failed to boot, I was hoping it would skip p1 and find the first bootable partition on the sd card, as per the README.txt.
For now I think I'll be giving up. I don't have mmcblk1 set up that way anymore, but I will post more on my next attempt. Thanks Fanoush!

fanoush 2007-02-16 18:58

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by jayholler (Post 35119)
I was hoping it would skip p1 and find the first bootable partition on the sd card, as per the README.txt.

Maybe this is a little confusing in the README but it works like this only with the original 'mmc' root device. If you add your own with specific device nothing is searched or skipped. Did you try to remove 'defaults' and leave only noatime? Is the same card booting when inserted into internal slot (with different menu entry of course)?

jayholler 2007-02-16 20:28

Re: Booting from MMC on N800 Now Available!!
 
OK, I lied, I've been trying this again since you posted your response to my questions.

Here is the problem, it would seem that the card may be corrupted. But I have a few questions, please excuse my newbness for the rest of this post.

When using sfdisk, it says that if you make a DOS partition you need to

dd if=/dev/zero of=/dev/mmcblk1p1 bs=512 count=1

Not being too familiar with sfdisk, I read up on it, and it appears that this is necessary. The man page I found online said to exit sfdisk, reboot, then issue the "dd" command above. So I tried that, but then the sfdisk program won't recognize the partitions, nor will mkdosfs or mke2fs. OK.

So, I tried next to only make one 2GB partition for ext2. So I sfdisk, reboot, mke2fs, reboot. Now I should be able to continue with "tar"ring the flash image over, following the instructions from the original post.

Next I do the ./initfs_flash script, reboot. I have modified the bootmenu.conf file to indicate mmcblk1 (since I only have one large linux partition now), and only the noatime option).

I try to mount /dev/mmcblk1p1, and there is nothing there.

sfdisk -l /dev/mmcblk1 says:

"sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/mmcblk1: unrecognized partition
No partitions found"

I am not sure where to go from here. I am using an N800, and trying to use the external MMC so I can still utilize the swap built into the OS on the internal MMC.

Do I have to use a DOS partition on /dev/mmcblk1? It would appear so. Perhaps I have a bad card, or messed it up somehow with all this partitioning from the device?

fanoush 2007-02-16 21:05

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by jayholler (Post 35141)
When using sfdisk, it says that if you make a DOS partition you need to

dd if=/dev/zero of=/dev/mmcblk1p1 bs=512 count=1

Not sure if this is still needed. This is historic issue related to bug in old ms-dos format.exe and/or fdisk.exe commands. They were too clever and were confused by previous data in the partition. I guess you can skip it but it shouldn't hurt.

If it hurts then something is seriously wrong, did you really used /dev/mmcblk1p1 and not /dev/mmcblk1 with dd command?

Quote:

Originally Posted by jayholler (Post 35141)
So, I tried next to only make one 2GB partition for ext2.

This is not good idea, default Nokia system expects first partition on card being FAT, if you insist on this you will need to modify few things or it will complain or fail.
Quote:

Originally Posted by jayholler (Post 35141)

I try to mount /dev/mmcblk1p1, and there is nothing there.

sfdisk -l /dev/mmcblk1 says:

"sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/mmcblk1: unrecognized partition
No partitions found"

This is the problem, looks like partitioning by sfdisk somehow doesn't work for you (or you erased if via bad dd above). Can you repartition card in desktop linux via usb card reader?

Quote:

Originally Posted by jayholler (Post 35141)
I am not sure where to go from here. I am using an N800, and trying to use the external MMC so I can still utilize the swap built into the OS on the internal MMC.

You can use swap on internal card partiton 1 (FAT) and still boot from partition 2 (ext2) on same card. This is IMHO the best setup. Then you have external slot completely free for other cards.
Quote:

Originally Posted by jayholler (Post 35141)
Perhaps I have a bad card, or messed it up somehow with all this partitioning from the device?

Yes, I'd guess some problem with partitioning the card. Try also 'dmesg' command to see kernel log, if you don't see i/o errors card is probably not bad.

jayholler 2007-02-16 21:13

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by fanoush (Post 35149)
Not sure if this is still needed. This is historic issue related to bug in old ms-dos format.exe and/or fdisk.exe commands. They were too clever and were confused by previous data in the partition. I guess you can skip it but it shouldn't hurt.

If it hurts then something is seriously wrong, did you really used /dev/mmcblk1p1 and not /dev/mmcblk1 with dd command?


This is not good idea, default Nokia system expects first partition on card being FAT, if you insist on this you will need to modify few things or it will complain or fail.

This is the problem, looks like partitioning by sfdisk somehow doesn't work for you (or you erased if via bad dd above). Can you repartition card in desktop linux via usb card reader?


You can use swap on internal card partiton 1 (FAT) and still boot from partition 2 (ext2) on same card. This is IMHO the best setup. Then you have external slot completely free for other cards.

Yes, I'd guess some problem with partitioning the card. Try also 'dmesg' command to see kernel log, if you don't see i/o errors card is probably not bad.

OK, you rule fanoush. I think i must have screwed something up somewhere along the way, I can't even remember how many times I have tried the partition part, and i have done it before, I know it shouldn't be this difficult. I must have screwed something up. I do have a linux system. I can partition the card using Ubuntu, and then finish on the N800?

THanks for your help and severe patience!!

jayholler 2007-02-17 14:50

Re: Booting from MMC on N800 Now Available!!
 
So now I've been able to partition the card appropriately:

Quote:

Disk /dev/mmcblk1: 62032 cylinders, 4 heads, 16 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 62032/4/16). For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/mmcblk1p1 0+ 60 61- 489951 6 FAT16
/dev/mmcblk1p2 61 246 186 1494045 83 Linux
/dev/mmcblk1p3 0 - 0 0 0 Empty
/dev/mmcblk1p4 0 - 0 0 0 Empty
but now the next step is failing me:

Quote:

/home/user # mount /dev/mmcblk1p2 /opt
mount: Mounting /dev/mmcblk1p2 on /opt failed: Invalid argument

sebastian.linux 2007-02-17 18:37

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by jayholler (Post 35233)
So now I've been able to partition the card appropriately:
but now the next step is failing me:

You need to format the partition before mounting it.

Milhouse 2007-02-17 20:24

Re: Booting from MMC on N800 Now Available!!
 
Also make sure ext2.ko and mbcache.ko are loaded.

freeman 2007-02-17 20:32

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by Milhouse (Post 35300)
Also make sure ext2.ko and mbcache.ko are loaded.

I think some of the modules have to be loaded in certain order. I'm not sure if you have to load mbcache.ko first or not. Also, you can't use modeprobe to load it, you have to use insmod and point to the correct folder.

Milhouse 2007-02-17 20:47

Re: Booting from MMC on N800 Now Available!!
 
Yes - mbcache.ko first, followed by ext2.ko using insmod. As it says in the howto :)

DCr33P 2007-02-20 01:05

Re: Booting from MMC on N800 Now Available!!
 
Guys, I have two little questions. I have no experience with that kind of "deep" booting related stuff on Linux systems. That are subjects, I alwasys missed somehow :( So the first question is:
Why should there be at least one FAT partition on the mmc/sd card when booting from it? Ext2 is the boot partition with rootfs, so what's the FAT partition for?
The second interrogation mark in my head is the wear issue. Jffs2 uses wear leveling to harmonize the write cycles throughout the jffs2 partition. So if we have a 512 mb parition, we have to commit about 50tb of traffic (512 * 10^-6*100000) to reach the 100k cycles limit. By the time we reach this amount there should be Nokia Internet Tablet OS 2280, so that's not a problem.
But what about ext2? If we are unlucky, we can wear out some specific blocks in a few months and had to suffer from read errors. Does the SD Controller have error correction? 2bit errors in one word (does not matter that much wich size, imho) are unlikely and 1bit errors can be corrected easily... Hmmm.. just some thoughts on it.

jayholler 2007-02-20 01:06

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by Milhouse (Post 35311)
Yes - mbcache.ko first, followed by ext2.ko using insmod. As it says in the howto :)

Yeah, I have those loading in the rcS file, which works nicely on the N800. Turns out that sfdisk formating the card too many times has screwed something up. I am going to see what some othr utilities can do for me. I tried the process again with a 128MB card, and it worked great until tar ran out of room. I appreciate all the help, but I've got to figure out what is wrong with the card before I can get this dual boot situation working.

freeman 2007-02-20 03:45

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by DCr33P (Post 35612)
Why should there be at least one FAT partition on the mmc/sd card when booting from it? Ext2 is the boot partition with rootfs, so what's the FAT partition for?

The fat partition is to store data, well at least data that used by the application that nokia made, stuff like contact, backup, etc. Which make good sense, because in windows world, FAT is the best compatibility FS between all OSes. It make things a lots easier to move data around between Windows&Linux&n800.
Quote:

Originally Posted by DCr33P (Post 35612)
The second interrogation mark in my head is the wear issue. Jffs2 uses wear leveling to harmonize the write cycles throughout the jffs2 partition. So if we have a 512 mb parition, we have to commit about 50tb of traffic (512 * 10^-6*100000) to reach the 100k cycles limit. By the time we reach this amount there should be Nokia Internet Tablet OS 2280, so that's not a problem.

Well, there is no way to predict when the flash will fail or how many write it will take. So, moving the written part to the SD card is better because it's replacable regardless of when or how it fails.
Quote:

Originally Posted by DCr33P (Post 35612)
But what about ext2? If we are unlucky, we can wear out some specific blocks in a few months and had to suffer from read errors. Does the SD Controller have error correction? 2bit errors in one word (does not matter that much wich size, imho) are unlikely and 1bit errors can be corrected easily... Hmmm.. just some thoughts on it.

well, if you like you don't have to use ext2 as a rootfs, you can still use jffs2. The problem is that jffs2 is compressed fs therefore, overhead. You could also make it use other fs also, like ext3 or jfs, but you will have to compile the kernel yourself. The kernel&loader are store on flash, and those things are read-only. The root can be store anywhere.

fanoush 2007-02-20 08:56

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by DCr33P (Post 35612)
Why should there be at least one FAT partition on the mmc/sd card when booting from it? Ext2 is the boot partition with rootfs, so what's the FAT partition for?

it is easier this way, nokia system expect first partition to be FAT. it is also great for interoperability, other systems expect memory cards to be FAT too. For SD cards filesystem specification is even part of SD standard. All SD cards should be FAT (FAT16), all SDHC cards should be FAT32.

Quote:

Originally Posted by DCr33P (Post 35612)
But what about ext2? If we are unlucky, we can wear out some specific blocks in a few months and had to suffer from read errors. Does the SD Controller have error correction?

As cards are expected to be FAT and this is very unfriendly filesystem for flash memory I wouldn't bother with ext2 :-)

SD/MMC memory cards (must) have its own internal logic for block management similar to hard disks. You can't tell which block is really used by the card when writing same block of filesystem. There are many reasons for this
- wear levelling and bad block management
- physical block size of NAND flash memory is different than filesystem block size and writing rules are much more complicated - blocks need to be written as a whole and erased before writing, it is better to handle this transparently inside card (i.e. pre-erase them and keep a pool of such fresh blocks ready for writing for better speed )

DCr33P 2007-02-20 18:08

Re: Booting from MMC on N800 Now Available!!
 
Thanks guys, your posts were very informative :)
There is just on thing:

Quote:

First partition as FAT, second one as ext2. You can use fdisk on linux PC and USB card reader to do this (is there fdisk compiled for N770?). As the jffs2 flash filesystem uses compression you need bigger partition on MMC to hold same data. 128MB is too small, at least 256MB is recommended to have similar space as with original flash rootfs.
What size should be the FAT partition? I assume, the 256mb min is according to the ext2 partition...

Thanks again.

freeman 2007-02-20 20:12

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by DCr33P (Post 35688)
What size should be the FAT partition? I assume, the 256mb min is according to the ext2 partition...

Thanks again.

FAT partition is going to be most, if not all of the space of your card. depending on whether you plan to boot of from that card or not. If you plan to boot off from that card, then I'll say about 512MB-1GB should be devote to ext2 and the rest to FAT. I already used over 700MB on the card, w/ tons of app. That's why people buy large SD card. I bought mine 8GB SDHC for like $70, and it work flowlessly. Just a warning, you can't use SDHC card w/ the stock kernel, at least not yet anyway. The next upgrade will persumably support it, as people are already start using them

schmots 2007-02-20 20:15

Re: Booting from MMC on N800 Now Available!!
 
Anyone doing the ext3 boot?

freeman 2007-02-20 20:19

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by schmots (Post 35726)
Anyone doing the ext3 boot?

I think you could, but the modules doesn't exactly work right out of the box, not to mention no body would recommend it. ext3 is basically an ext2 w/ journal support. Well what does journal mean? It mean continuous writing to the storage. This is bad, very very bad for flash base storage.

schmots 2007-02-20 20:21

Re: Booting from MMC on N800 Now Available!!
 
You can mount ext3 without turning on Journaling. You just need to edit the mount options for the partition. I just wondered if anyone was though.

fanoush 2007-02-20 20:46

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by freeman (Post 35728)
I think you could, but the modules doesn't exactly work right out of the box, not to mention no body would recommend it. ext3 is basically an ext2 w/ journal support. Well what does journal mean? It mean continuous writing to the storage. This is bad, very very bad for flash base storage.

Well if fact I did (recommend it).

here
http://www.internettablettalk.com/fo...08&postcount=7
and here
http://www.internettablettalk.com/fo...3&postcount=35

And no, it isn't that bad. This continuous writing problem is a myth. There are a bit more writes indeed for metadata journaling but not something significant.

DCr33P 2007-02-24 00:25

Re: Booting from MMC on N800 Now Available!!
 
Hmm... I just tried the procedure to boot from SD card.
I used the maemo wiki:

http://maemo.org/maemowiki/HowTo_EAS..._From_MMC_card

and followed exactly these instructions.

The bootmenu consists of:
boot from flash
mmc
mmc2, partition 2, ext2
...
I get the error : Boot from mmc failed, booting from flash...
when choosing the option "mmc2,partition 2..."

When choosing "mmc" it boots, but boots from flash...
What's wrong?

Some specs:
N800 latest firmware
internal sd card, 2gb
mmcblkp1 ~1.5gb FAT16
mmcblkp2 ~0.5gb ext2
Partitioning done with sfdisk: http://maemo.org/maemowiki/HowTo_EAS..._your_MMC_card

I realized that the instructions from the wiki differ from the one at the beginning of this thread. In this thread used:
Quote:

vi /mnt/initfs/bootmenu.sh

Change the line
GETKEY="evkey -u -t 1000 /dev/input/event1"
to
GETKEY="evkey -u -t 1000 /dev/input/event2"
What's the meaning of these steps?

EDIT:
While partitioning my SD card with sfdisk it asks me whether I want to mark the Fat16 partition as active or not. I chose yes (to mark as active). Was this decision ok?

penguinbait 2007-02-24 01:08

Re: Booting from MMC on N800 Now Available!!
 
the evkey entry is only to get the menu KEYS to work, if you can toggle which menu entry to choose evkey is working for you. Partiton info looks right, my guess would be your data was not properly copied.

did you do this?

# apt-get -d install tar
# cd /var/cache/apt/archives/
# mkdir /tar-temp/
# dpkg -x tar*.deb /tar-temp/
# /tar-temp/bin/tar cf - -C /floppy . | /tar-temp/bin/tar xvf - -C /opt


/bin/tar (busybox) will not copy things properly. If it can not boot from mmc it will boot from flash I believe. http://penguinbait.com/tar.gz is the one I use.

DCr33P 2007-02-24 01:11

Re: Booting from MMC on N800 Now Available!!
 
hmmm... I've just booted from flash, inserted mbcache.ko, ext2.ko and mounted /dev/mmcblk0p2. The mountpoint is empty, so I can assume that the cloning progress went wrong. I did exactly the same as described on the wiki:
I just pasted(not very famillar with those tar options...):
Quote:

/tar-temp/bin/tar cf - -C /floppy . | /tar-temp/bin/tar xvf - -C /opt
and before that, of curse:
Quote:

mount /dev/mmcblk0p2 /opt ;
mount -t jffs2 /dev/mtdblock4 /floppy -o rw,rpsize=1024,rpuid=0,rpuid=30000

DCr33P 2007-02-24 01:25

Re: Booting from MMC on N800 Now Available!!
 
Yes I did that. Hmmm what can I do now?

EDIT:
I just mounted the card to /opt and initfs to /floppy again to do the try the cloning process again. I checked with df ang got a strange result:

Quote:

/dev/mmcblk0p2 499014 194165 279085 41% /opt
/dev/mtdblock4 257536 120804 136732 47% /floppy
According to this, there is data on the card. But I can't see it....

Quote:

du -sh /opt
tells me, there is no data.


All times are GMT. The time now is 23:03.

vBulletin® Version 3.8.8