Hi, everyone! I'm trying to get mini6410 work. Unfortunately, when I load kernel and rootfs to NAND and reset it, kernel loads successfull, but says that /init: /r/dev/console not found. I've tested plenty of kernels and filesystems, but have the sane result. I don't understand where it found init, if it can't mount filesystem? Could anyone help me, please? Thanks!
/init: /r/dev/console not found
Init process search for /dev/console. It's a part of kernel not init program. Check if you have correct kernel root parameter.
Thanks for reply so much! I passed console=ttySAC0,115200 to the kernel as explained in manual. If I try ttyS0,115200 there doesn't appear any messages from kernel. So, I think console=ttySAC0,115200 is write, isn't it? Thanks!
Yes ttySAC0 is correct. Anyway if you get an error it continue boot or it hangs? COuld you post some last lines of log?
Shure! Last lines of log before Kernel panic: ... yaffs_read_super: isCheckpointed 0 /init: line 81: can't open /r/dev/console: no such file Kernel panic - not syncing: Attempted to kill init! P.S. I loaded kernel at 0x80000, rootfs at 580000 addresses. my bootargs line is: root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200 Maybe it's related to MTD params?
I've added user_debug=31 as You suggested. Unfortunatelly, log is the same as it was earlier. Nothing is changed. I've being using zImage_v70 kernel from mini6410 dvd. Maybe, it wasn't compiled with debug mode?
Well maybe not. Have similar problems and this shows that init process was compiled with wrong compiler. Anyway you need to compile kernel with debug.
I thought, I load kernel and rootfs to NAND incorrect using u-boot. I do this without counting aligned size, just "write.i offset addr count_of_bytes". If it's so, could You give me short explanation of doing that, please? Thanks!
I found the solving of my problem. All mistakes caused that I flashed rootfs just by 'write' command, instead 'write.jffs'. Thats why kernel couldn't recognize filesystem geometry. Now all works fine. Thanks for help so much!