Hi, Dave,
Thank you for the kind explanation and I think it will help much for me.
I searched down the uClib as you told me and could locate the kernel sys_write function.
In my case, the arch is sparc, and it is defined in fs/read_write.c as you said(in linux kernel source).
I've checked that
SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, size_t, count)
is expanded to
=> asmlinkage long sys_write(unsigned int fd, const char __user * buf, size_t count)
and I was able to use prom_printf (write to uart) to print what I tried to print in busybox with printf.
Now I can see busybox printf at least through the uart port though it's not yet shown on the LCD(which I'm trying to map to tty1 and the shell).
Thank you!
Chan
From : "Dave Hylands" <dhylands@gmail.com>
Sent : 2014-03-13 02:54:40 ( +09:00 )
To : Kim Chan <ckim@etri.re.kr>
Cc : Mohan L <l.mohanphy@gmail.com>, kernelnewbies@kernelnewbies.org <kernelnewbies@kernelnewbies.org>
Subject : Re: where is the printf source for busybox?
Hi,