Re: Linux on Sun e10k

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>On Sat, 2007-01-27 at 17:05 +0100, Jan Engelhardt wrote:
>> On Jan 27 2007 09:37, Tom 'spot' Callaway wrote:
>> >> 
>> >> int ret = sys_open((const char __user *)"/dev/console", O_RDWR, 0);
>> >> if(ret < 0)
>> >>   printk(KERN_WARNING "Warning: unable to open an "
>> >>          "initial console (%d)\n", ret);
>> >> 
>> >> I wonder what return code it will give (-EFAULT is my guess).
>> >
>> >Warning: unable to open an initial console (-2)
>> >-ENOENT ?
>> >/dev/console is definitely inside the nfsroot that I'm mounting...
>> 
>> In case you are using initramfs/initrd, make it available there too.
>
>I'm not. Everything is compiled in. I'm running make image, then
>elftoaout arch/sparc64/boot/image, and booting the a.out kernel over
>tftp.

Please try adding this before sys_open...

  /* this sys_open never succeeds, hence sys_close is not needed */
  ret = sys_open((const char __user *)"/dev", O_RDWR, 0);
  printk(KERN_WARNING "Unable to open /dev (%d)\n", ret);

And tell us the error code.

  * either it's EISDIR
  * or ENOENT

in either case, more digging is needed, and if it means writing a namespace
walker [ls -Rl] ;-)


	-`J'
-- 
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux