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)

DCr33P 2007-02-24 02:39

Re: Booting from MMC on N800 Now Available!!
 
Ok, I think I've been able to isolate the problem a bit.
Running dmesg prints out following:

Code:

[ 1105.062469] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[ 1109.425537] EXT2-fs error (device mmcblk0p2): ext2_check_page: bad entry in directory #2: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0
[ 1109.426086] EXT2-fs error (device mmcblk0p2): ext2_readdir: bad page in #2
[ 1110.415252] EXT2-fs error (device mmcblk0p2): ext2_readdir: bad page in #2
[ 1120.740539] EXT2-fs error (device mmcblk0p2): ext2_readdir: bad page in #2
[ 1122.880798] EXT2-fs error (device mmcblk0p2): ext2_readdir: bad page in #2

Got several "error blocks" like this, assume every time I try to mount the ext2 partition. Do I have a bad SD card? In sfdisk I used:

Code:

# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,45000,6
/dev/mmcblk0p2:45001,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:

Still not sure whether I should have switched the "active" flag on or not.

sebastian.linux 2007-02-24 14:53

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

Originally Posted by DCr33P (Post 36255)
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?

I think you shouldn't. Because the vfat partition is not bootable.

DCr33P 2007-02-24 15:35

Re: Booting from MMC on N800 Now Available!!
 
I just did the partitioning again and did not set the active flag. Then I made a vfat and ext2 fs, again. After rebooting and mounting ext2, there is still the same data as before when typing "df" but no visible data. How can I format the partiton?

And there is something very wrong:

Code:

/media/mmc2 # mkdir test
mkdir: Cannot create directory `test': Input/output error


DCr33P 2007-02-24 16:30

Re: Booting from MMC on N800 Now Available!!
 
Ok, I am stalled right now and don't know what to do next. :(

DCr33P 2007-02-24 17:38

Re: Booting from MMC on N800 Now Available!!
 
Grr... I am going crazy :mad:
I flushed the sd card with dd if=/dev/null ... stuff. Then I created a whole FAT16 parition with sfdisk:

Code:

sfdisk /dev/mmcblk0 << EOF
;
EOF

Then again with sfdisk:

Code:

..blk0p1:1,45000,6
..blk0p2:45001,,
...

Then I had a 500mb linux partiton and 1.5 gig fat16.

Now again I did the dd if=/dev/null stuff to /dev/mmcblk0p2, because there were some problems reported, that mkfs.ext2 did not format he partiton right.
Then:

mkdosfs /dev/mmcblk0p1
(REBOOT)
(insmod mbcache/ext2)
mkfs.ext2 /dev/mmcblk0p2
(REBOOT)

and when I mount the ext2 partiton, "df" shows me:

Code:

/dev/mtdblock4            2048      1772      276  87% /mnt/initfs
none                      512        64      448  13% /mnt/initfs/tmp
/dev/mtdblock4          257536    120884    136652  47% /
none                      512        64      448  13% /tmp
none                      1024        68      956  7% /dev
/dev/mmcblk1p1          122912    17392    105520  14% /media/mmc1
/dev/mmcblk0p2          499014    194165    279085  41% /opt

I erased the partiton a few times with dd, deleted partitions and crated them, erased them egain with dd and format it with mkfs.ext2 and still have those 41% of data on it?

cd /opt ; mkdir test -> again with input/output error.

Somethig is veeeeeeeeeery wrong...

Please, need help :confused:

sapporobaby 2007-02-25 19:45

Re: Booting from MMC on N800 Now Available!!
 
Why would anyone want to do this?

DCr33P 2007-02-25 19:51

Re: Booting from MMC on N800 Now Available!!
 
ehhhhhhem...???

sapporobaby 2007-02-25 19:56

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

Originally Posted by DCr33P (Post 36442)
ehhhhhhem...???

Was that a very feeble attempt at humor or an answer?

DCr33P 2007-02-25 19:58

Re: Booting from MMC on N800 Now Available!!
 
Ehhhhhheeeem....??? An Answer to what, exactly?:)

sapporobaby 2007-02-25 20:04

Re: Booting from MMC on N800 Now Available!!
 
I asked why would anyone want to do this. To boot from an MMC? What is the advantage or need?


All times are GMT. The time now is 16:09.

vBulletin® Version 3.8.8