Kernel change for booting off DOC 2000 and Millenium

Kevin Moore kevin at
Wed Oct 18 12:48:21 EDT 2000

My problem with "I have no root and I want to scream" during boot-up
using DOC Millenium was pleasantly easy to solve.  The following
kernel patch adds "/dev/nftla" to the list of devices which can
be specified as a root device on the command line.  Without this,
the kernel is unable to parse "root=/dev/nftla1" and can't find
it's root filesystem (for any DOC).  Booting using an rdev'ed
kernel should work without any kernel change, since it doesn't rely
on parsing the kernel command line options.

--- linux-2.4.0-test9/init/main.c	Fri Oct  6 23:20:25 2000
+++ linux-2.4.0-test9-working/init/main.c	Wed Oct 18 09:08:58 2000
@@ -170,6 +170,7 @@
 	{ "hdr",     0x5A40 },
 	{ "hds",     0x5B00 },
 	{ "hdt",     0x5B40 },
+	{ "nftla",   0x5D00 },
 	{ "sda",     0x0800 },
 	{ "sdb",     0x0810 },
 	{ "sdc",     0x0820 },

{"nftlb", 0x5d10}, etc. can be added to allow using DOC's other than
the first as a root filesystem.

Also, to those who've been having trouble with getting DOC 2000's
to work with the grub - the grub patches for DOC 2000 support have
a lot of parameters hard-wired, and undoubtedly fail with chips
different than the ones used in development, so that could be the
cause of your trouble.  Check nand.h (latest CVS it's nand_ids.h),
I believe the grub patches for DOC 2000 have the last 3 columns
of nand_flash_ids hard-coded as "1, 3, 0x2000" (page256 true,
pageadrlen=3, and erasesize=0x2000).  Not positive about those though,
as I'm going from memory (certain of the 0x2000 erasesize).

I'm planning to get the general DOC support from the kernel driver
into grub when I have time, but this is a spare-time project, so
I'm not sure when that will be.

-- Kevin

To unsubscribe, send "unsubscribe mtd" to majordomo at

More information about the linux-mtd mailing list