Boot da SD

openmoko Add comments

Dopo un paio di giorni trascorsi tra chat,forum e wiki sono riuscito ad installare su sd om2008.8 ma con la stessa procedura di possono installare tutte le altre immagini.
PARTIZIONI NELLA SCHEDA SD:
Innanzitutto bisogna preparare le partizioni sulla scheda SD in questo modo :

fdisk /dev/mmcblk0

e poi seguiamo questo schema :

Command (m for help): d
Selected partition 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-983, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-983, default 983): +8M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (18-1793, default 18):
Using default value 18
Last cylinder or +size or +sizeM or +sizeK (18-1793, default 1793):
Using default value 1793
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.


Formattiamo la prima partizione della scheda:

mkfs.vfat /dev/mmcblk0p1

e la seconda partizione:

mkfs.ext3 /dev/mmcblk0p2

Adesso abbiamo la scheda SD pronta per l’installazione dell’immagine! :-)

INSTALLIAMO L’IMMAGINE :
Scarichiamo l’immagine della distribuzione che ci interessa in tar.gz,e trasferiamolo nella SD tramite una sessione ssh :

scp NostraImmagine.tar.gz root@192.168.0.202:/media/mmcblk0p2/

Adesso logghiamoci sul freerunner sempre in ssh ed estraiamo il file dall’archivio tar.gz :

cd /media/mmcblk0p2
tar xzf NostraImmagine.tar.gz
rm NostraImmagine.tar.gz
rm -f /media/mmcblk0p2/boot/*


Adesso dobbiamo installare il kernel,quindi sul nostro pc scarichiamo il kernel relativo all’immagine da installare (il kernel ha l’estenzione .bin) e lo rinominiamo in uImage.bin come segue:

mv KernelScaricato.bin uImage.bin
scp uImage.bin root@192.168.0.202:/media/card/boot/
scp uImage.bin root@192.168.0.202:/media/card/


Adesso possiamo riavviare il nostro freerunner da NAND e scegliere “Boot from SD” e partirà la vostra nuova immagine!

14 Responses to “Boot da SD”

  1. clone.beta Says:

    root@om-gta02:~# fdisk /dev/mmcblk0

    The number of cylinders for this disk is set to 17792.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
    (e.g., DOS FDISK, OS/2 FDISK)

    Command (m for help): d
    Selected partition 1

    Command (m for help): n
    Command action
    e extended
    p primary partition (1-4)
    Command action
    e extended
    p primary partition (1-4)
    p
    Partition number (1-4): 1
    First cylinder (1-17792, default 1): 1
    Last cylinder or +size or +sizeM or +sizeK (1-17792, default 17792): +8M

    Command (m for help): n
    Command action
    e extended
    p primary partition (1-4)
    p
    Partition number (1-4): 2
    First cylinder (281-17792, default 281): Using default value 281
    Last cylinder or +size or +sizeM or +sizeK (281-17792, default 17792): Using default value 17792

    Command (m for help): w
    The partition table has been altered!

    Calling ioctl() to re-read partition table
    fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy

    Che faccio?

  2. akus Says:

    scrivi:
    umount /dev/mmcblk0p1
    e fai nuovamente la procedura:
    fdisk /dev/mmcblk0

    vedo che lo stai facendo direttamente dal freerunner,io la formattazione della sd l’ho fatta dal lettore di schede del portatile ma credo non cambi molto.

  3. clone.beta Says:

    root@om-gta02:~# mkfs.vfat /dev/mmcblk0p1
    sh: mkfs.vfat: not found
    root@om-gta02:~# mkfs.
    mkfs.ext2 mkfs.ext3 mkfs.minix
    mkfs.ext2.e2fsprogs mkfs.ext3.e2fsprogs

    e sulla mia ubuntubox e avevo già istallato dosfstools

  4. Cicchetebom Says:

    Per chiarezza, dato che non ho capito molto tutta la trafila.. se non facessi le partizioni sulla sdcard è possibile estrarre direttamente i files nella mamory? il FR ha bisogno di una partizione particolare?

    Max

  5. akus Says:

    @ Cicchetebom : le partizioni servono perchè sono di due tipi vfat ed ext3 non puoi mettere tutto in un’unica partizione.

  6. axl Says:

    Dopo aver preparato le partizioni sulla mia scheda SD, alla scrittura (comando fdisk “w”) ottengo il seguente messaggio:
    “Calling ioctl() to re-read partition table
    fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy”
    Digiatando da terminale: “umount /dev/mmcblk0p1″ ottengo:
    “umount: /media/mmcblk0p1: device is busy”
    Cosa posso fare? Ho installato sul mio FR solo OM2008.09+update e non riesco ad installare nessuna distribuzione sulla microSD.
    Ciao e grazie

  7. marco Says:

    Ho già installato sulla sd qtopia 4.3 e vorrei installarci la fdom.Ho già le part. vfat e ext3 posso riscriverci sopra? visto che hjo problemi a formattare?

  8. marco Says:

    [root@localhost pinguino]# fdisk /media/disk-3
    last_lba(): I don’t know how to handle files with mode 40755
    Impossibile scrivere la tabella delle partizioni.

    Impossibile leggere /media/disk-3
    uso mandriva
    tanks

  9. monica Says:

    ciao,
    ho installato qtopia su sd in formato tar. Siccome a scompattarlo tramite il mokkolo ci mette troppo , lo posso scompattare da pc inserendo la sd nell’adattatore?ciao e grazie

  10. wow power leveling Says:

    A faithful friend is hard to find

  11. kino berlin Says:

    Gut!

  12. kiturk Says:

    if you say

  13. immobilie Says:

    Sehr wertvolle Informationen! Empfehlen!

WP Theme & Icons by N.Design Studio Restyling by Tecnìco, sponsor by Stilegames
Entries RSS Comments RSS Collegati