SA1100 序列埠¶
SA1100 序列埠的主/次裝置號已被官方分配。
> Date: Sun, 24 Sep 2000 21:40:27 -0700
> From: H. Peter Anvin <hpa@transmeta.com>
> To: Nicolas Pitre <nico@CAM.ORG>
> Cc: Device List Maintainer <device@lanana.org>
> Subject: Re: device
>
> Okay. Note that device numbers 204 and 205 are used for "low density
> serial devices", so you will have a range of minors on those majors (the
> tty device layer handles this just fine, so you don't have to worry about
> doing anything special.)
>
> So your assignments are:
>
> 204 char Low-density serial ports
> 5 = /dev/ttySA0 SA1100 builtin serial port 0
> 6 = /dev/ttySA1 SA1100 builtin serial port 1
> 7 = /dev/ttySA2 SA1100 builtin serial port 2
>
> 205 char Low-density serial ports (alternate device)
> 5 = /dev/cusa0 Callout device for ttySA0
> 6 = /dev/cusa1 Callout device for ttySA1
> 7 = /dev/cusa2 Callout device for ttySA2
>
您必須在 SA1100 裝置所使用的根檔案系統的 /dev 目錄下建立這些 inode。
mknod ttySA0 c 204 5
mknod ttySA1 c 204 6
mknod ttySA2 c 204 7
mknod cusa0 c 205 5
mknod cusa1 c 205 6
mknod cusa2 c 205 7
除了建立上述相應的裝置節點外,您還必須確保您的使用者空間應用程式使用正確的裝置名稱。經典的例子是 /etc/inittab 檔案的內容,您可能在該檔案中啟動了 ttyS0 上的 getty 程序。
在這種情況下
將所有 ttyS0 替換為 ttySA0,將 ttyS1 替換為 ttySA1,以此類推。
別忘了在 /etc/securetty 中新增 ‘ttySA0’、‘console’ 或適當的 tty 名稱,以允許 root 使用者登入。