Neo FreeRunner partitions

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(+ (U-Boot?))
 
(18 intermediate revisions by 9 users not shown)
Line 1: Line 1:
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 openmoko]] updates partition contents.
+
The internal flash memory is divided into partitions of several uses. The exact partition sizes are stored in the [[bootloader]] ([[U-Boot]]?) 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 <br>
+
GTA02 partitions different from [[Neo 1973 Partitions|GTA01 partitions]], it comes with extra factory partition for productions.
 
+
 
+
{| class="wikitable sortable" style="margin: 0em " cellspacing="0" cellpadding="3" border="1"
+
! Name !! DFU# !! Linux mtd# !! Size !! Purpose
+
|-
+
| u-boot || 1 || 0 || 256 kB || [[Bootloader]] binary
+
|-
+
| u-boot_env || 2 || 1 || 16 kB || Checksummed bootloader config
+
|-
+
| kernel || 3 || 2 || 2 MB || [[Kernel]] uImage binary
+
|-
+
| splash || 4 || 3 || 640 kB || [[Splash_screen#U-boot_Splash|Bootloader splash screen]]
+
|-
+
| rootfs || 5 || 4 || rest of the 64 MB || JFFS2-formatted [[userspace root image|file system]]
+
|}
+
  
 
== Via DFU ==
 
== Via DFU ==
Line 22: Line 7:
 
:''See also [[USB DFU]] and [[dfu-util]].''
 
:''See also [[USB DFU]] and [[dfu-util]].''
  
<pre>
+
# ./dfu-util -l
memento:~# dfu-util -l
+
dfu-util - (C) 2007 by Openmoko Inc.
dfu-util - (C) 2007 by OpenMoko Inc.
+
This program is Free Software and has ABSOLUTELY NO WARRANTY
This program is Free Software and has ABSOLUTELY NO WARRANTY
+
  
Found DFU: [0x1457:0x5119] devnum=9, cfg=0, intf=0, alt=0, name="RAM 0x32000000"
+
Found DFU: <nowiki>[</nowiki>[[USB Product IDs|0x1d50:0x5119]]<nowiki>]</nowiki> devnum=122, cfg=0, intf=0, alt=0, name="RAM 0x32000000"
Found DFU: [0x1457:0x5119] devnum=9, cfg=0, intf=0, alt=1, name="u-boot"
+
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=1, name="u-boot"
Found DFU: [0x1457:0x5119] devnum=9, cfg=0, intf=0, alt=2, name="u-boot_env"
+
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=2, name="u-boot_env"
Found DFU: [0x1457:0x5119] devnum=9, cfg=0, intf=0, alt=3, name="kernel"
+
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=3, name="kernel"
Found DFU: [0x1457:0x5119] devnum=9, cfg=0, intf=0, alt=4, name="splash"
+
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=4, name="splash"
Found DFU: [0x1457:0x5119] devnum=9, cfg=0, intf=0, alt=5, name="rootfs"
+
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=5, name="factory"
</pre>
+
Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=6, name="rootfs"
  
 
== In U-Boot ==
 
== In U-Boot ==
 +
TBD
  
:''See also [[bootloader]].''
+
== In Linux ==
  
 
<pre>
 
<pre>
GTA01Bv4 # printenv mtdparts
+
root@om-gta02:/proc# cat /proc/partitions
mtdparts=mtdparts=neo1973-nand:0x00040000(u-boot),0x00004000(u-boot_env),0x00200000(kernel),0x000a0000(splash),0x03d1c000(rootfs)
+
major minor  #blocks  name
</pre>
+
 
 +
  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
  
== In Linux ==
 
  
<pre>
+
root@om-gta02:/proc# tr " " \\n < /proc/cmdline
root@fic-gta01:~$ cat /proc/mtd
+
rootfstype=jffs2
dev:    size  erasesize  name
+
root=/dev/mtdblock6
mtd0: 00040000 00004000 "u-boot"
+
console=ttySAC2,115200
mtd1: 00004000 00004000 "u-boot_env"
+
console=tty0
mtd2: 00200000 00004000 "kernel"
+
loglevel=8
mtd3: 000a0000 00004000 "splash"
+
regular_boot
mtd4: 03d1c000 00004000 "rootfs"
+
mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs)
 +
 
 
</pre>
 
</pre>
  
[[Category:Developer software]]
+
[[Category:Neo FreeRunner Hardware]]
[[Category:GTA02 Hardware]]
+
[[Category:Bootloaders]]
 +
[[Category:Flash]]

Latest revision as of 09:24, 10 February 2012

The internal flash memory is divided into partitions of several uses. The exact partition sizes are stored in the bootloader (U-Boot?) 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.

[edit] 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"

[edit] In U-Boot

TBD

[edit] 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 openmoko updates partition contents.

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


Name DFU# Linux mtd# Size Purpose
u-boot 1 0 256 kB Bootloader binary
u-boot_env 2 1 16 kB Checksummed bootloader config
kernel 3 2 2 MB Kernel uImage binary
splash 4 3 640 kB Bootloader splash screen
rootfs 5 4 rest of the 64 MB JFFS2-formatted file system

Via DFU

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

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

In U-Boot

See also bootloader.
GTA01Bv4 # printenv mtdparts
mtdparts=mtdparts=neo1973-nand:0x00040000(u-boot),0x00004000(u-boot_env),0x00200000(kernel),0x000a0000(splash),0x03d1c000(rootfs)

In Linux

root@fic-gta01:~$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00004000 "u-boot"
mtd1: 00004000 00004000 "u-boot_env"
mtd2: 00200000 00004000 "kernel"
mtd3: 000a0000 00004000 "splash"
mtd4: 03d1c000 00004000 "rootfs"