RE: booting 2.6 kernel on ML403
From: John Bonesio <hidden>
Date: 2006-10-04 17:17:28
A quick amendment to my previous email: The device name you should use in the CONFIG_CMDLINE "root=..." can be found in the routine call to register_blkdev() in the driver source code. The first parameter to register_blkdev() is the major number of the device. The second parameter is the name of the device, as in /dev/xsda2, or /dev/xsysace2. This second parameter will contain just the 'xsda' or 'xsysace' in it, and it may be a preprocessor constant defined earlier in the file, such as #define MAJOR_NAME "xsda", but it might not be a constant either. It depends on the code. Hopefully this clears things up a bit. - John ________________________________ From: linuxppc-embedded-bounces+jbonesio=xilinx.com@ozlabs.org [mailto:linuxppc-embedded-bounces+jbonesio=xilinx.com@ozlabs.org] On Behalf Of Pradeep Sampath Sent: Wednesday, October 04, 2006 10:35 AM To: Ming Liu; ammubhai@gmail.com Cc: linuxppc-embedded@ozlabs.org Subject: Re: booting 2.6 kernel on ML403 Hello Ameet/Ming, First of all really appreciate your inputs on this... Problem 1 : I was using the factory shipped compact flash as is which comes with a DOS FAT16 partition and a linux 83 partition with ext3 filesystem. I tried it on 2 factory shipped CFs and its the same behavior - . When i plug-in the CF card reader to the linux box it always reads it as "sda" and in the linux2.6.17.1/Documentation/devices.txt - sda is the device file for SCSI disk devices. Wonerding how you guys configured the root option as "/dev/xsa". Now i re-formatted my CF, created a ext2 filesystem using busybox-1.1.0 like the BYU instructions. Created 2 partitions on CF card 1. FAT16 partition & 2. linux partition and then created 1. dos file system using mkdosfs and 2. linux ext2 filesystem using mke2fs. But the problem still persists and i get "Please append a correct "root=" boot option :" :( Problem 2: After i included the TEMAC driver and sysace drivers, the kernel just hangs. I thought i'll fix problem 1 before i get to problem 2... With your help i am getting the confidence that i can make this all work! thanks once again. -Pradeep Ming Liu [off-list ref] wrote: Hello Ameet, I am using that driver very well now. There is only one problem. It seems that the driver for TEMAC only support Gigabit Enet, not 10/100/1000M adapted. But because I want to use the Gigabit enet, I don't care that. So it's OK, at lease for 1Gbit/s. So I don't think Pradeep's problem is caused by Temac. I still suspect that he didn't pass a right parameter to "root=", just like what I posted before. Regards Ming >From: Ameet Patil >To: Ming Liu >CC: pradeepsampath@yahoo.com, linuxppc-embedded@ozlabs.org >Subject: Re: booting 2.6 kernel on ML403 >Date: Wed, 04 Oct 2006 09:35:07 +0100 > >Ming Liu wrote: > > Hi, > > > >> [ 3.093694] TCP bic registered > >> [ 3.129458] NET: Registered protocol family 8 > >> [ 3.181412] NET: Registered protocol family 20 > >> [ 3.236744] VFS: Cannot open root device "xsa2" or unknown-block(0,0) > >> [ 3.313092] Please append a correct "root=" boot option > > > > It looks that some errors still exist in the parameters you passed to > > "root=". Please double check it, or post it in the maillist for deep > > analysis. > > Regards > > Ming > > > > _________________________________________________________________ > > ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Linuxppc-embedded mailing list > > Linuxppc-embedded@ozlabs.org > > https://ozlabs.org/mailman/listinfo/linuxppc-embedded >Hi Ming, >IIRC, you are or were using the TEMAC driver along with my System Ace >driver, isn't it? Does my driver patch ***-after-TEMAC.patch work for >you? I ask this because Pradeep is having some problems using it (see >Problem 2 in his email). Could you please update on this? > >Thanks, >-Ameet _________________________________________________________________ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded