doc:appunti:hardware:freerunner
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:hardware:freerunner [2009/10/12 21:30] – niccolo | doc:appunti:hardware:freerunner [2009/10/13 08:21] – niccolo | ||
---|---|---|---|
Line 426: | Line 426: | ||
==== Backup con dfu-util ==== | ==== Backup con dfu-util ==== | ||
- | FIXME In teoria dovrebbe essere possibile fare il backup delle immagini contenute nella memoria flash con l' | + | FIXME In teoria dovrebbe essere possibile fare il backup delle immagini contenute nella memoria flash con l' |
- | Ad ogni modo, questa sarebbe la procedura: | + | Il bug è confermato con U-Boot 1.3.2-moko12 (2008-12-18) e dfu-util r4067. |
+ | |||
+ | Ad ogni modo, questa sarebbe la procedura | ||
- Entrare nel **menu U-Boot in NOR flash** (accendere il FreeRunner tenendo premuto il tasto **AUX** e premendo il pulsante **POWER**). | - Entrare nel **menu U-Boot in NOR flash** (accendere il FreeRunner tenendo premuto il tasto **AUX** e premendo il pulsante **POWER**). | ||
Line 435: | Line 437: | ||
< | < | ||
+ | # WARNING! OpenMoko bug #1843 produces bad images! | ||
dfu-util -a kernel | dfu-util -a kernel | ||
dfu-util -a splash | dfu-util -a splash | ||
Line 441: | Line 444: | ||
</ | </ | ||
- | Per salvare l' | + | Per salvare l' |
- | < | + | Ecco la dimensione e il contenuto di ciascuna partizione: |
- | # Warning: the entire size of the partition will be dumped! | + | |
- | dfu-util -a rootfs -R -U bkp_rootfs.jffs2 | + | |
- | </ | + | |
- | + | ||
- | Ecco riassunto | + | |
^ splash.bin | ^ splash.bin | ||
Line 485: | Line 483: | ||
</ | </ | ||
- | Il file così ottenuto deve essere identico a quello usato durante il flashing iniziale, **a meno della dimensione**. Ecco come confrontare i due file: | + | Omettiamo dal dump i byte out-of-band (OOB), che contengono informazioni di servizio (bad block marks, error correction codes). |
+ | |||
+ | Il file così ottenuto deve essere | ||
< | < | ||
cmp --bytes=1780096 Om2008.12-om-gta02.uImage.bin mtd3_kernel.dump | cmp --bytes=1780096 Om2008.12-om-gta02.uImage.bin mtd3_kernel.dump | ||
</ | </ | ||
+ | |||
+ | Il kernel dovrebbe essere disponibile anche come file **''/ | ||
+ | |||
+ | Il dump della partizione //rootfs// con questo metodo è sconsigliato, | ||
+ | |||
+ | Per effettuare il dump del rootfs vedere il metodo che segue. | ||
==== Backup con mkfs.jffs2 ==== | ==== Backup con mkfs.jffs2 ==== | ||
Line 508: | Line 514: | ||
L' | L' | ||
- | Questi i comandi per **installare le nuove versioni** (tra un upload e l' | ||
- | |||
- | < | ||
- | dfu-util -a u-boot -R -D gta02v5_and_up-u-boot.bin | ||
- | dfu-util -a kernel -R -D Om2008.9.uImage.bin | ||
- | dfu-util -a rootfs -R -D Om2008.9.rootfs.jffs2 | ||
- | dfu-util -a splash -D Om2008.9.splash.gz | ||
- | </ | ||
**Jffs2** è un filesystem journaled specifico per memorie [[wp> | **Jffs2** è un filesystem journaled specifico per memorie [[wp> | ||
< | < | ||
- | losetup / | + | losetup / |
modprobe block2mtd block2mtd=/ | modprobe block2mtd block2mtd=/ | ||
cat /proc/mtd | cat /proc/mtd | ||
Line 537: | Line 535: | ||
jffs2_scan_inode_node(): | jffs2_scan_inode_node(): | ||
</ | </ | ||
+ | |||
+ | ==== Flashing delle nuove immagini ==== | ||
+ | |||
+ | La procedura effettua il trasferimento tramite cavetto USB con l' | ||
+ | |||
+ | Entrare nel **menu U-Boot** con uno dei metodi visti sopra ed eseguire questi comandi per **installare le nuove versioni** (tra un upload e l' | ||
+ | |||
+ | < | ||
+ | dfu-util -a u-boot -R -D gta02v5_and_up-u-boot.bin | ||
+ | dfu-util -a kernel -R -D Om2008.12-om-gta02.uImage.bin | ||
+ | dfu-util -a rootfs -R -D Om2008.12-om-gta02.rootfs.jffs2 | ||
+ | dfu-util -a splash -D Om2008.9.splash.gz | ||
+ | </ | ||
+ | |||
+ | **NOTA:** L' | ||
===== PyPPP: connessione internet via GPRS ===== | ===== PyPPP: connessione internet via GPRS ===== |
doc/appunti/hardware/freerunner.txt · Last modified: 2015/03/11 09:15 by niccolo