Skip to contentSkip to conversation

Kernel change for booting off DOC 2000 and Millenium

PATCH Kevin Moore 2 participants 2 messages Oct 18, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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.

init/main.c +1 -0
@@ -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 [email protected]

#1 lore raw
Quoted 5 lines · Kevin Moore

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.

passing "root=5d01" should work, without any kernel modifications

Fernando Fuganti

To unsubscribe, send "unsubscribe mtd" to [email protected]