このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
mae3xx_tips:console_internal:start [2014/06/06 11:46] – admin | mae3xx_tips:console_internal:start [2014/06/10 09:53] (現在) – admin | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== Linuxコンソール出力を出力しない ====== | ||
+ | |||
+ | アプリケーションでMA-E320についているシリアルポートを両方共使用したい、というような場合に、\\ | ||
+ | Kernel起動以降のコンソール出力を止める方法を紹介します。 | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ===== 準備 ===== | ||
+ | |||
+ | CONSOLEポートをシリアルポートとして使用する場合、市販のRS-45 - DSUB9変換アダプタを使用し、\\ | ||
+ | 必要な信号線を接続する必要があります。 | ||
+ | |||
+ | 参考: [[http:// | ||
+ | 【数量1個~】単価 ¥672 | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | |||
+ | \\ | ||
+ | |||
+ | ===== 設定 ===== | ||
+ | |||
+ | ブートローダにて、/ | ||
+ | |||
+ | 参照: [[mae3xx_ope: | ||
+ | |||
+ | |||
+ | < | ||
+ | barebox@plum-ma[1GiB]:/ | ||
+ | #!/bin/sh | ||
+ | |||
+ | # change network settings in / | ||
+ | # change mtd partition settings and automountpoints in /env/init/* | ||
+ | |||
+ | # | ||
+ | |||
+ | # set to false if you do not want to have colors | ||
+ | # | ||
+ | |||
+ | # user (used for network filenames) | ||
+ | # | ||
+ | |||
+ | # timeout in seconds before the default boot entry is started | ||
+ | global.autoboot_timeout=2 | ||
+ | |||
+ | # list of boot entries. These are executed in order until one | ||
+ | # succeeds. An entry can be: | ||
+ | # - a filename in /env/boot/ | ||
+ | # - a full path to a directory. All files in this directory are | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # base bootargs | ||
+ | # | ||
+ | |||
+ | # don't format MTD automatically | ||
+ | # | ||
+ | |||
+ | # single page firmware | ||
+ | # | ||
+ | |||
+ | # never use mmc as overlay | ||
+ | # | ||
+ | |||
+ | # select overlayfs as overlay filesystem driver | ||
+ | # | ||
+ | |||
+ | # don't mount JRE partition | ||
+ | #nojre=1 | ||
+ | |||
+ | # set kernel console as ' | ||
+ | # | ||
+ | barebox@plum-ma[1GiB]:/ | ||
+ | </ | ||
+ | |||
+ | edit コマンドで /env/config ファイルをオープンし、最後の行の " | ||
+ | コメントを外します。 | ||
+ | |||
+ | Ctrl+D で保存後、saveenv で変更した内容を保存し、再起動します。 | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ===== 再起動後 ===== | ||
+ | |||
+ | シリアルポートには、Kernel起動までのメッセージのみが出力されます。 | ||
+ | |||
+ | < | ||
+ | barebox 2013.12.0-00254-g291c1b0 #262 Wed Feb 19 12:09:30 JST 2014 | ||
+ | |||
+ | |||
+ | Board: plum-ma[1GiB] | ||
+ | m25p80 m25p800: m25p16 (2048 Kbytes) | ||
+ | booting from SPI | ||
+ | |||
+ | |||
+ | barebox 2013.12.0-00341-gb190004 #553 Tue Jun 3 10:50:00 JST 2014 | ||
+ | |||
+ | |||
+ | Board: plum-ma[1GiB] | ||
+ | nand: ONFI param page 0 valid | ||
+ | nand: ONFI flash detected | ||
+ | nand: NAND device: Manufacturer ID: 0x01, Chip ID: 0xda (AMD/ | ||
+ | size: 64 | ||
+ | omap-hsmmc omap4-hsmmc0: | ||
+ | m25p80 m25p800: m25p16 (2048 Kbytes) | ||
+ | i2c-omap i2c-am33xx0: | ||
+ | cpsw cpsw0: detected phy mask 0xc | ||
+ | mdio_bus: miibus0: probed | ||
+ | eth0: got preset MAC address: D0: | ||
+ | malloc space: 0x8e000000 -> 0x9dffffff (size 256 MiB) | ||
+ | Reset is caused by "Warm Reset" | ||
+ | running / | ||
+ | filetype: No such file or directory | ||
+ | UBI: attaching mtd0 to ubi0 | ||
+ | UBI: scanning is finished | ||
+ | registering /dev/ubi0 | ||
+ | registering kernel.0 as / | ||
+ | registering kernel.1 as / | ||
+ | registering initramfs.0 as / | ||
+ | registering initramfs.1 as / | ||
+ | registering kmod.0 as / | ||
+ | registering kmod.1 as / | ||
+ | registering rootfs.0 as / | ||
+ | registering rootfs.1 as / | ||
+ | registering opt as / | ||
+ | registering overlay as / | ||
+ | UBI: attached mtd0 (name " | ||
+ | UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes | ||
+ | UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512 | ||
+ | UBI: VID header offset: 512 (aligned 512), data offset: 2048 | ||
+ | UBI: good PEBs: 2040, bad PEBs: 0, corrupted PEBs: 0 | ||
+ | UBI: user volume: 10, internal volumes: 1, max. volumes count: 128 | ||
+ | UBI: max/mean erase counter: 14/9, WL threshold: 4096, image sequence number: 31184 | ||
+ | UBI: available PEBs: 0, total reserved PEBs: 2040, PEBs reserved for bad PEB handling: 40 | ||
+ | |||
+ | Hit m for menu or any other key to stop autoboot: | ||
+ | booting nand | ||
+ | firm_kind0: | ||
+ | firm_area0: | ||
+ | dipsw: | ||
+ | overlay: | ||
+ | overlay_driver: | ||
+ | [5] boot with latest firmware succeeded. | ||
+ | bootm.image: | ||
+ | bootm.oftree: | ||
+ | bootm.initrd: | ||
+ | bootargs.dyn.root: | ||
+ | bootargs.dyn.watchdog: | ||
+ | bootargs.dyn.console: | ||
+ | bootargs.dyn.cleanboot | ||
+ | bootargs.dyn.nojre | ||
+ | bootargs.dyn.overlay | ||
+ | bootargs.dyn.overlay_driver overlay_driver=aufs | ||
+ | boot_info: | ||
+ | Image Name: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | Data Size: 3429600 Bytes = 3.3 MiB | ||
+ | Load Address: 80008000 | ||
+ | Entry Point: | ||
+ | |||
+ | Loading OS U-Boot uImage '/ | ||
+ | Loading devicetree from '/ | ||
+ | plum_of_fixup: | ||
+ | commandline: | ||
+ | 2, | ||
+ | booting kernel with devicetree | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ===== 注意点 ===== | ||
+ | |||
+ | * シリアルコンソールからのログインができなくなります。 | ||
+ | * IPアドレスの設定を忘れた、sshdを起動していなかった、sshのポートにフィルタを掛けていたなどの場合、一切メンテナンスができなくなります。 | ||