Neo FreeRunner partitions

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m (linkfix)
(add some linux command lines to see the partitions)
Line 25: Line 25:
  
 
== In Linux ==
 
== In Linux ==
TBD
+
 
 +
<pre>
 +
root@om-gta02:/proc# cat /proc/partitions
 +
major minor  #blocks  name
 +
 
 +
  31    0      2048 mtdblock0
 +
  31    1        256 mtdblock1
 +
  31    2        256 mtdblock2
 +
  31    3      8192 mtdblock3
 +
  31    4        640 mtdblock4
 +
  31    5        256 mtdblock5
 +
  31    6    252544 mtdblock6
 +
179    0    495488 mmcblk0
 +
179    1    495313 mmcblk0p1
 +
 
 +
 
 +
root@om-gta02:/proc# tr " " \\n < /proc/cmdline
 +
rootfstype=jffs2
 +
root=/dev/mtdblock6
 +
console=ttySAC2,115200
 +
console=tty0
 +
loglevel=8
 +
regular_boot
 +
mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs)
 +
 
 +
</pre>
  
 
[[Category:System Developers]]
 
[[Category:System Developers]]
 
[[Category:Neo FreeRunner Hardware]]
 
[[Category:Neo FreeRunner Hardware]]
 
[[Category:Flash]]
 
[[Category:Flash]]

Revision as of 18:01, 14 November 2008

The internal flash memory is divided into partitions of several uses. The exact partition sizes are stored in the bootloader environment variable "mtdblocks", and depend on bad blocks of each device. Flashing the Neo FreeRunner updates partition contents.

GTA02 partitions different from GTA01 partitions, it comes with extra factory partition for productions.

Via DFU

See also USB DFU and dfu-util.
# ./dfu-util -l
dfu-util - (C) 2007 by Openmoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=0, name="RAM 0x32000000"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=1, name="u-boot"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=2, name="u-boot_env"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=3, name="kernel"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=4, name="splash"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=5, name="factory"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=6, name="rootfs"

In U-Boot

TBD

In Linux

root@om-gta02:/proc# cat /proc/partitions 
major minor  #blocks  name

  31     0       2048 mtdblock0
  31     1        256 mtdblock1
  31     2        256 mtdblock2
  31     3       8192 mtdblock3
  31     4        640 mtdblock4
  31     5        256 mtdblock5
  31     6     252544 mtdblock6
 179     0     495488 mmcblk0
 179     1     495313 mmcblk0p1


root@om-gta02:/proc# tr " " \\n < /proc/cmdline
rootfstype=jffs2
root=/dev/mtdblock6
console=ttySAC2,115200
console=tty0
loglevel=8
regular_boot
mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs)

Personal tools

The internal flash memory is divided into partitions of several uses. The exact partition sizes are stored in the bootloader environment variable "mtdblocks", and depend on bad blocks of each device. Flashing the Neo FreeRunner updates partition contents.

GTA02 partitions different from GTA01 partitions, it comes with extra factory partition for productions.

Via DFU

See also USB DFU and dfu-util.
# ./dfu-util -l
dfu-util - (C) 2007 by Openmoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=0, name="RAM 0x32000000"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=1, name="u-boot"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=2, name="u-boot_env"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=3, name="kernel"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=4, name="splash"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=5, name="factory"
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=6, name="rootfs"

In U-Boot

TBD

In Linux

TBD