View Single Post
Old 08-23-2015, 03:21 PM   #3592
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
The FW 2.x devices are NOT dual-boot devices, IIRC. No diags as such, but the rescue shell at boot, and the ancestors of the diags tests lying somewhere in main.
I think they are devices that stored a primary and alternate boot image (with a single root file system).

Perhaps even a primary and alternate u-boot image as well.

(Flash storage hardware wasn't trusted so much, back in those days.)

I still have a backup copy of twobob's DX - on a per-device basis.
There are 14 storage devices (or partitions) on the DX.
I'll push that copy to kpool/dxg in case you want to look at it.
(It will probably be safer there anyway, I am about to perform major surgery on my own PC's storage system.)

Edit:
Working, should be there in about 1-1/2 hours.

Sorry for the thread hyjack, but here, from mach-mx3/mario.c
Spoiler:

Code:
#ifdef CONFIG_MACH_MARIO_MX
#if 1
/* 8Mbyte version */
static struct mtd_partition mxc_nor_partitions[] = {
	{
	 .name = "Bootloader1",
	 .size = 128 * 1024,
	 .offset = 0x00020000,
	 .mask_flags = 0},
	{
	 .name = "Kernel1",
	 .size = 3584 * 1024,
	 .offset = 0x00060000,
	 .mask_flags = 0},
	{
	 .name = "BoardId",
	 .size = 32 * 1024,
	 .offset = 0x00008000,
	 .mask_flags = 0},
	{
	 .name = "Bootloader2",
	 .size = 128 * 1024,
	 .offset = 0x00040000,
	 .mask_flags = 0},
	{
	 .name = "Kernel2",
	 .size = 3584 * 1024,
	 .offset = 0x00400000,
	 .mask_flags = 0},
	{
	 .name = "BootEnv",
	 .size = 64 * 1024,
	 .offset = 0x00010000,
	 .mask_flags = 0},
	{
	 .name = "Diags",
	 .size = 128 * 1024,
	 .offset = 0x003e0000,
	 .mask_flags = 0},
	{
	 .name = "Vectors",
	 .size = 24 * 1024,
	 .offset = 0x00000000,
	 .mask_flags = 0}, /* one day we should force this as read-only */
	{
	 .name = "unused0",
	 .size = 64 * 1024,
	 .offset = 0x00010000,
	 .mask_flags = 0},
};
#else
/* 4Mbyte version */
static struct mtd_partition mxc_nor_partitions[] = {
	{
	 .name = "Bootloader1",
	 .size = 128 * 1024,
	 .offset = 0x00020000,
	 .mask_flags = 0},
	{
	 .name = "Kernel1",
	 .size = 1792 * 1024,
	 .offset = 0x00060000,
	 .mask_flags = 0},
	{
	 .name = "BoardId",
	 .size = 32 * 1024,
	 .offset = 0x00008000,
	 .mask_flags = 0},
	{
	 .name = "Bootloader2",
	 .size = 128 * 1024,
	 .offset = 0x00040000,
	 .mask_flags = 0},
	{
	 .name = "Kernel2",
	 .size = 1792 * 1024,
	 .offset = 0x00220000,
	 .mask_flags = 0},
	{
	 .name = "BootEnv",
	 .size = 64 * 1024,
	 .offset = 0x00010000,
	 .mask_flags = 0},
	{
	 .name = "Diags",
	 .size = 128 * 1024,
	 .offset = 0x003e0000,
	 .mask_flags = 0},
	{
	 .name = "Vectors",
	 .size = 24 * 1024,
	 .offset = 0x00000000,
	 .mask_flags = 0}, /* one day we should force this as read-only */
	{
	 .name = "unused0",
	 .size = 64 * 1024,
	 .offset = 0x00010000,
	 .mask_flags = 0},
};
#endif
#endif

Last edited by knc1; 08-23-2015 at 03:43 PM.
knc1 is offline   Reply With Quote