Tomato Shibby / rootfs / serial console

3 posts / 0 new
Last post
DLW
DLW's picture
Tomato Shibby / rootfs / serial console

Hi,

I have connected my WNR3500lv2 using the FDTI USB/serial cable and I obtain an early serial console but I get the following warning message during boot ...

 

All bugs added by David S. Miller <[email protected]>

VFS: Mounted root (squashfs filesystem) readonly.

Freeing unused kernel memory: 128k freed

Warning: unable to open an initial console.

 

and after that the console freezes for some time and then comes back.

The rootfs is a squashfs filesystem on /dev/mtdblock15 but this filesystem contains an empty /dev directory ... I think this is the reason for the error message ... 

How can I add the two devices /dev/console and /dev/ttyS0 to this filesystem so as to avoid the message and get the serial console all along the boot process ?

Thanks for any hint ...

PS:I have troubles unsquashing the rootfs on another architecture (x86). Seems to be an old version of squashfs ...


DLW
DLW's picture
Ok seems I need to add

Ok seems I need to add

mknod -m 0644 dev/console c 5 1
mknod -m 0644 dev/ttyS0 c 4 64

to the file "release/src-rt/router/others/rootprep.sh"
and recompile the firmware.

Beware mknod only works for root user so compile
under root.

DLW
DLW's picture
I did also add

I did also add

mknod -m 0666 dev/nvram c 253 0

The compilation of AIO went ok. The upgrade
also and the router boots ok ...

No more error messages on the serial console.
But also not much more messages ...

So I did not get any other information except
when I discoverde that /dev/nvram was missing.