Neo FreeRunner partitions
From Openmoko
(Difference between revisions)
Kbjorgensen (Talk | contribs) |
(+ (U-Boot?)) |
||
(6 intermediate revisions by 3 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 | + | 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 [[ | + | GTA02 partitions different from [[Neo 1973 Partitions|GTA01 partitions]], it comes with extra factory partition for productions. |
== Via DFU == | == Via DFU == | ||
Line 7: | Line 7: | ||
:''See also [[USB DFU]] and [[dfu-util]].'' | :''See also [[USB DFU]] and [[dfu-util]].'' | ||
− | + | # ./dfu-util -l | |
− | # ./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: [0x1d50:0x5119] devnum=122, 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: [0x1d50:0x5119] devnum=122, 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: [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=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=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=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=5, name="factory" |
− | Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=6, name="rootfs" | + | Found DFU: [0x1d50:0x5119] devnum=122, cfg=0, intf=0, alt=6, name="rootfs" |
− | + | ||
== In U-Boot == | == In U-Boot == | ||
Line 25: | Line 23: | ||
== In Linux == | == In Linux == | ||
− | |||
− | + | <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:Neo FreeRunner Hardware]] | [[Category:Neo FreeRunner Hardware]] | ||
+ | [[Category:Bootloaders]] | ||
[[Category:Flash]] | [[Category:Flash]] |
Latest revision as of 10: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
# ./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)