Tarvisin apuja arm-ubuntun asennuksessa N900:lle. Tarkoitus on siis asentaa käyttöjärjestelmä laitteen sisäiselle muistille - ei microSD-kortille.
Löysin jonkinlaista ohjeen tynkää täältä:
http://www.smartphonetab.net/forum/showthread.php?3268-Ubuntu-Natty/page8"käännös" edeliselle:
http://talk.maemo.org/showthread.php?t=74084Tiedostoja löytyy täältä:
http://cdimage.ubuntu.com/releases/12.04.2/release/ubuntu ja n900 halailua:
https://wiki.ubuntu.com/ARM/n900Mitä on tähänmennessä saatu aikaan:
Luodaan kansiot imagen mounttaamista varten
sudo mkdir /media/ubuntu
sudo mkdir /media/ubuntu2
Ladataan pc:lle ubuntu arm image
wget http://cdimage.ubuntu.com/releases/12.04.2/release/ubuntu-12.04-preinstalled-desktop-armhf+omap4.img.gz
Puretaan gzip paketti
gzip -d ubuntu-12.04-preinstalled-desktop-armhf+omap4.img.gz
"ora dobbiamo analizzare l'immagine estratta per vedere a che punto inizia la partizione che ci interessa"??
fdisk -lu ubuntu-12.04-preinstalled-desktop-armhf+omap4.img
Levy ubuntu-12.04-preinstalled-desktop-armhf+omap4.img: 2028 Mt, 2028994560 tavua
255 päätä, 63 sektoria/ura, 246 sylinteriä, yhteensä 3962880 sektoria
Yksiköt = 1 * 512 = 512 -tavuiset sektorit
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Levyn tunniste: 0x00000000
Laite Käynn Alku Loppu Lohkot Id Järjestelmä
ubuntu-12.04-preinstalled-desktop-armhf+omap4.img1 * 32 147455 73712 c W95 FAT32 (LBA)
ubuntu-12.04-preinstalled-desktop-armhf+omap4.img2 147456 3962879 1907712 83 Linux
samsunix@samuliweb:~$
Lasketaan jotain jotain mistä lohko jotain: 147456 * 512 = 75497472
Mountataan image
samsunix@samuliweb:~$ sudo mount -o loop,offset=75497472 ubuntu-12.04-preinstalled-desktop-armhf+omap4.img /media/ubuntu
samsunix@samuliweb:~$ sudo dd if=/dev/zero of=ubuntu.img.ext3 bs=1024 count=0 seek=$[1024*3000]
0+0 tietuetta sisään
0+0 tietuetta ulos
0 tavua (0 B) kopioitu2,7936e-05 sekunnissa, 0,0 kB/s
samsunix@samuliweb:~$ sudo mkfs.ext3 -m0 -L ubuntu.img.ext3 ubuntu.img.ext3
mke2fs 1.42 (29-Nov-2011)
ubuntu.img.ext3 is not a block special device.
Proceed anyway? (y,n) y
Discarding device blocks: done
Filesystem label=ubuntu.img.ext3
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
192000 inodes, 768000 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=788529152
24 block groups
32768 blocks per group, 32768 fragments per group
8000 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
samsunix@samuliweb:~$
samsunix@samuliweb:~$ sudo mount -o loop ubuntu.img.ext3 /media/ubuntu2
cd /media/ubuntu
samsunix@samuliweb:/media/ubuntu$ sudo tar -cf - . | ( cd /media/ubuntu2 ; tar -xpvf - )
FAIL
Apuja kaivataan :/
@N900
Siiretään ubuntu.img.ext3 MyDocs kansioon
Asennetaan RootSH
http://maemo.org/downloads/product/raw/Maemo5/rootsh?get_installfile <- surffaa tälle sivulle ja klikkaa n900 selaimella linkkiä.
noudetaan easy-chroot
wget http://www.robertocolistete.net/MaemoMeeGo/EasyDebian/easy-chroot_0.2.0-1harmattan1_armel.deb
root
Asennetaan easy chroot deb paketista
dpkg -i easy-chroot_0.2.0-1harmattan1_armel.deb
mkdir /mnt/ubuntu
mkdir /mnt/ubuntu2
Nokia-N900-02-8:/home/user/MyDocs# qchroot ubuntu.img.ext3 /mnt/ubuntu Mounting...
using image file: ubuntu.img.ext3
fs type is ext3
Using ext3 file system
mounting ubuntu.img.ext3 on loop
...ubuntu.img.ext3 mounted on loop0
.
mount: mounting /dev on /mnt/ubuntu/dev failed: No such file or directory
mount: mounting /proc on /mnt/ubuntu/proc failed: No such file or directory
..
mount: mounting none on /mnt/ubuntu/dev/pts failed: No such file or directory
mount: mounting /tmp on /mnt/ubuntu/tmp failed: No such file or directory
mount: mounting /var/tmp on /mnt/ubuntu/var/tmp failed: No such file or director y
mount: mounting /dev/shm on /mnt/ubuntu/dev/shm failed: No such file or director y
mount: mounting /sys on /mnt/ubuntu/sys failed: No such file or directory
...
....
mount: mounting /dev/mmcblk0p2 on /mnt/ubuntu/home failed: No such file or direc tory
mount: mounting /dev/mmcblk0p1 on /mnt/ubuntu/home/user/MyDocs failed: No such f ile or directory
mount: mounting /var/run/dbus on /mnt/ubuntu/var/run/dbus failed: No such file o r directory
mount: mounting /var/lib/dbus on /mnt/ubuntu/var/lib/dbus failed: No such file o r directory
mount: mounting /var/run/pulse on /mnt/ubuntu/var/run/pulse failed: No such file or directory
Everything set up, running chroot...
chroot: cannot execute /bin/sh: No such file or directory
Nokia-N900-02-8:/home/user/MyDocs#
(Jotain meni vikaan...)