mdev not loading firmware for marvel chip

Denys Vlasenko vda.linux at googlemail.com
Sat May 31 18:25:11 UTC 2008


On Saturday 31 May 2008 08:17, Mike Frysinger wrote:
> > static void load_firmware(const char *const firmware, const char *const
> > sysfs_path) {...}
> >
> > Can you add debug printouts to mdev.c and determine what step doesn't work?
> 
> trick with debug printouts is that the kernel executes the hotplug helper (and 
> thus mdev) without any fd's open.  so you'd have to write a wrapper script to 
> connect stdout/stderr to like /dev/console or some tty/file and then execute 
> the mdev binary.  or do the connection in mdev itself.
> 
> perhaps that is worth adding to mdev.c ?
> #ifdef DEBUG
> 	dup2(open("/dev/console", O_RDONLY), STDIN_FILENO);
> 	dup2(open("/dev/console", O_WRONLY), STDOUT_FILENO);
> 	dup2(open("/dev/console", O_WRONLY), STDERR_FILENO);
> #endif

Godd idea. Done. Thanks.
--
vda



More information about the busybox mailing list