📜 ⬆️ ⬇️

Nokia N800: How to transfer the OS to the internal card.

Simple instructions for beginners.



1) (Optional step, I just wanted to have a “clean” system) I patched OS2008 with the latest firmware, and removed all unnecessary junk.
2) Turn on the Maemo Extras repository and add a new repository.maemo.org , Distribution: (blank) Components: free non-free
3) Install openssh through the Application Manager
4) Set the root-password (openssh will offer to do it during installation)
5) Open the xterm and write:
# ssh root@localhost



6) Install e2fsprogs, create two partitions on our flash drive (in my case this is an 8 gig flash drive and I break it into 2 gigabytes for Fat and 6 gigs for the system) Change the values ​​mmcblk0p1 and mmcblk0p2 to fit your needs. Syntax: starting block, ending block, typ. One block is equal to 32768 bytes. Types: 6 - fat16, 0c - fat32, 83 - Linux.
# apt-get install e2fsprogs
# umount /media/mmc1
# umount /media/mmc2
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,65536,0c
/dev/mmcblk0p2:65537,,83
/dev/mmcblk0p3:
/dev/mmcblk0p4:
y
# reboot

7) Create a file system on the map:
# ssh root@localhost
-

# umount /media/mmc1
# umount /media/mmc2
# mkdosfs /dev/mmcblk0p1
# mke2fs /dev/mmcblk0p2
# reboot

8) Download the fanoush.wz.cz/maemo/initfs_flasher.tgz file using the built-in browser and save it to: /home/user/MyDocs/.documents/ (default folder)
')
9) Unpack and run the multi-boot firmware script (it will ask a few questions, I recommend making a backup of the loader image, and discard all other offers)
# ssh root@localhost
-

# cd /home/user/MyDocs/.documents/
# tar zxf initfs_flasher.tgz
# cd initfs_flasher
# ./initfs_flash

10) Install 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) Mount file system for cloning
# mount /dev/mmcblk0p2 /opt
# mount -t jffs2 -o ro /dev/mtdblock4 /floppy

12) Clone files from / floppy to / opt:
# tar cf - -C /floppy . | tar xf - -C /opt

(We are waiting for some time. We check that it does not display any critical errors)

13) Customize the download from the map:
# umount /opt
# umount /floppy
# chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
# reboot

Choose to boot from the card

14) Making it possible to view our fat section from a computer
# ssh root@localhost
-

# cd /usr/sbin/
# vi osso-mmc-umount.sh

scroll down to:
if [ $? = 0]; then
umount $MP 2> /dev/null
RC=$?
else

Click I (to enter edit mode) and replace the line umount with
if [ "$MP" != "/" ]; then umount $MP 2> /dev/null; fi

we press esc we enter: wq

EVERYTHING!

Source: https://habr.com/ru/post/24111/


All Articles