rash.m2k
|
2008-08-16
, 11:16
|
Posts: 642 |
Thanked: 486 times |
Joined on Aug 2008
|
#61
|
|
2008-08-31
, 13:36
|
Posts: 10 |
Thanked: 0 times |
Joined on Aug 2008
|
#62
|
Here's a slightly updated version of my steps. In short, this is what I did to get my N800 to boot OS2008 from MMC. Note that all shell commands need to be entered as root (except for the very first command).
1) upgraded my N800 to OS2008, http://europe.nokia.com/A4305010
2) enabled the Maemo Extras repository in Application Manager and added http://repository.maemo.org, Distribution: (blank) Components: free non-free
3) installed openssh using Application Manager
4) defined a root password (openssh's installer prompted for this)
5) opened xterm and:
# ssh root@localhost
(optional step - Added to following lines to the end of sudoers)
# visudo
user ALL = (ALL) NOPASSWD: ALL
root ALL = (ALL) NOPASSWD: ALL
6) created two (512 MB and 7 GB) partitions on my 8 GB SD card. Adjust the values for mmcblk0p1 and mmcblk0p2 to reflect the SD card you are using. One unit is equal to 32768 bytes so 16384 units/blocks is 512 MB.
# apt-get install e2fsprogs
# umount /media/mmc1
# umount /media/mmc2
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,16384,6
/dev/mmcblk0p2:16385,,83
/dev/mmcblk0p3:
/dev/mmcblk0p4:
# reboot
7) created file systems on the card:
# umount /media/mmc1
# umount /media/mmc2
# mkdosfs /dev/mmcblk0p1
# mke2fs /dev/mmcblk0p2
# reboot
8) downloaded http://fanoush.wz.cz/maemo/initfs_flasher.tgz using the N800 browser and saved it to: /home/user/MyDocs/.documents/ (default location)
9) unpacked it and ran the script:
# cd /home/user/MyDocs/.documents/
# tar zxf initfs_flasher.tgz
# cd initfs_flasher
# ./initfs_flash
10) installed the kernel modules:
# insmod /mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko
# insmod /mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko
11) mounted the file systems to be cloned:
# mount /dev/mmcblk0p2 /opt
# mount -t jffs2 -o ro /dev/mtdblock4 /floppy
12) cloned the files from /floppy to /opt:
# tar cf - -C /floppy . | tar xf - -C /opt
(This takes quite a while. Observe any errors it might, but shouldn't, display. Change to "tar xvf" if you want verbose output.)
13) set up the MMC as a boot option and rebooted the device:
# umount /opt
# umount /floppy
# chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
# reboot
|
2008-08-31
, 14:54
|
Posts: 678 |
Thanked: 197 times |
Joined on Jul 2007
@ San Jose CA
|
#63
|
Can I clarify something? I created 2 partitions in a 8G SD card as MMC2; 1st partition 7G (for general usage) and the second partition 0.6G (for OS boot. After going through 1-9, I noticed that I have 6.8G in my MMC2...is this correct? Reason for asking is that i when followed your instructions (1st partition 0.6G and second partition 7G) it resulted in the MMC showing about 0.6G.
I have managed to go through action 1-11 after few attempts without error finally. However action 12 shows up errors:-
1. /opt: Not found in archive.
2. Removing leading '/' from member names.
3. Removing leading '/' from hard link targets.
4. -C: Cannot write : No space left on device. Error not recoverable.
What have I done wrong- any clues?
The Following User Says Thank You to nhanquy For This Useful Post: | ||
|
2008-09-01
, 03:32
|
Posts: 10 |
Thanked: 0 times |
Joined on Aug 2008
|
#64
|
|
2008-09-01
, 08:07
|
Posts: 10 |
Thanked: 0 times |
Joined on Aug 2008
|
#65
|
|
2008-09-01
, 08:40
|
Posts: 678 |
Thanked: 197 times |
Joined on Jul 2007
@ San Jose CA
|
#66
|
This is off topic but what does it mean to run debian from a partition and not from the img file? Is this similar to cloning the OS to the MMC?
I installed debian and found running the debian applications too slow to be practical.
The Following User Says Thank You to nhanquy For This Useful Post: | ||
|
2008-09-01
, 11:10
|
Posts: 10 |
Thanked: 0 times |
Joined on Aug 2008
|
#67
|
|
2008-09-01
, 11:32
|
Posts: 678 |
Thanked: 197 times |
Joined on Jul 2007
@ San Jose CA
|
#68
|
The OS in the MMC looks good. However I have trouble getting the PC to read it as it is used by the N800.
|
2008-09-01
, 12:31
|
Posts: 10 |
Thanked: 0 times |
Joined on Aug 2008
|
#69
|
|
2008-09-01
, 12:59
|
Posts: 678 |
Thanked: 197 times |
Joined on Jul 2007
@ San Jose CA
|
#70
|
when i boot from device, the n800 does not have the same installed condition as when I boot from the MMC. I thought it was a cloning process...i.e. what i do for the MMC will get reflected in the device memory?
I did turn the swap memory off. The MMC2 is still not available to the PC via USB. So I did a device boot to copy stuff into the MMC2.