(toppers-users 4597) Re: SafeG - ノントラストLinuxの起動

Yoshitaka Takebe takebe @ sec.co.jp
2016年 9月 1日 (木) 18:51:35 JST


本田様

建部です。お世話になっております。

アドバイスありがとうございます。
ご提示頂いた点について、調べてみようと思います。


今回の問題が発生しない状況 (トラスト側に、タイマーが正確な周期で入力される状況) は、
これまでに実現 (確認) されたことはありますでしょうか?

以上です。

-----------------------返信元のメール-----------------------
Mon, 29 Aug 2016 13:46:44 +0900From:     Shinya Honda <honda @ ertl.jp>
Reply-To: users @ toppers.jp
To:       users @ toppers.jp
Cc:       takebe @ sec.co.jp
Subject:  (toppers-users 4596) Re: SafeG - ノントラストLinuxの起動
日時:     2016/08/29(月) 13:46:44


>建部さん
>
>本田です.
>
>現状の設定ではLinuxからクロックコントローラを設定出来るため,Linuxが起動時にクロックの設定をしてい
>て一時的に速度が落ちている可能性があります.
>
>DVFSも動いているので,起動後もクロック速度が変わります.
>
>これを避けるためにはLinux側のクロックドライバー周りを変更する必要があります.
>
>以上,よろしくお願いします.
>
>On 2016/08/23 16:18, Yoshitaka Takebe wrote:
>> 本田様
>>
>> 建部です。大変お世話になっております。
>>
>> これまで数々の助言を頂いた結果、
>> トラスト側でTOPPERS/FMP、ノントラスト側でLinux
>> を動作させることができました。
>> ありがとうございます。
>>
>>
>> 現在、1点、不明な動きがございます。
>>
>> トラスト側のTOPPERS/FMPにおいて、周期動作の精度を確認するため、
>> 1ms毎に周期タスクを起動し、起動ごとにGPIOのHigh/Lowを繰り返す、
>> ということを行っております。
>> GPIOの波形は、オシロスコープで確認しています。
>>
>>
>> 上記の確認を行ったところ、1ms間隔でTOPPERS/FMPが動作していないことが分かりました。
>>
>>
>> CPUボードの起動直後、TOPPERS側は先に起動しますが、この時は、
>> 1ms+10μs 程度の周期で動作しています。
>>
>> この、周期の若干のずれも気にはなっているのですが、
>>
>> Linux側の起動シーケンスが進むと
>> 1ms周期ではなく、10ms程度間隔が空くケースが発生し、
>>
>> Linuxの起動が完了すると(ログイン可能な段階までいくと)、
>> 2ms周期で安定してしまいます。
>> ※ なぜか、5秒に1回、一瞬、1ms周期に戻りますが、その後2ms周期に戻ります。
>>
>>
>> このような動きは、
>> 私の使用方法が誤っている のか、もともとそういう動きなのか、
>> お分かりになりますでしょうか?
>>
>>
>> また、解消する方法はございますでしょうか?
>>
>>
>> 重ね重ね、お忙しいところ申し訳ございませんが、よろしくお願いいたします。
>>
>> 以上です。
>>
>> -----------------------返信元のメール-----------------------
>> Wed, 17 Aug 2016 16:12:03 +0900From:     Shinya Honda <honda @ ertl.jp>
>> Reply-To: users @ toppers.jp
>> To:       users @ toppers.jp
>> Cc:       takebe @ sec.co.jp
>> Subject:  (toppers-users 4593) Re: SafeG - ノントラストLinuxの起動
>> 日時:     2016/08/17(水) 16:12:03
>>
>>
>>> 建部さん
>>>
>>> 本田です.
>>>
>>> 割込みをFMP側で使うように設定すると,Linux側には割込みが入らなくなります.
>>> そのため,Linux側でUARTの割込みを使うタイミングで動作しなくなっていた可能性が高いですね.
>>>
>>> 以上,よろしくお願いします.
>>>
>>> On 2016/08/17 15:17, Yoshitaka Takebe wrote:
>>>> 本田様
>>>>
>>>> 建部です。お世話になっております。
>>>>
>>>> 度々、ごサポートいただき、ありがとうございました。
>>>>
>>>>> すみません,i.MX6では chip_gtimer.c を使いますね.
>>>>> 90-92行目をコメントアウトするとタイマはスタートしなくなります.
>>>>
>>>> 上記ご連絡、ありがとうございました。
>>>>
>>>> この解析でも、状況は変わらなかったのですが、
>>>> 別の変更を加えたところ、起動までたどり着きました。
>>>>
>>>>
>>>>>>> FMPはLinuxとは別のUARTを使っていますので,ログはU-Boot(NT)とLinux(NT)のみです.
>>>>
>>>> 上記のコメントから、FMP側をデフォルト(UART3)に戻したところ、
>>>> Linuxにログインするところまで、到達しました。
>>>>
>>>> UARTで競合が発生するタイミングがあるのかもしれません。
>>>>
>>>>
>>>> しかし、デフォルトで使っていれば出なかった問題でした。
>>>> お騒がせして申し訳ございませんでした。
>>>>
>>>> 今後ともよろしくお願いいたします。
>>>>
>>>> 以上です。
>>>>
>>>> -----------------------返信元のメール-----------------------
>>>> Wed, 17 Aug 2016 12:58:35 +0900From:     Shinya Honda <honda @ ertl.jp>
>>>> Reply-To: users @ toppers.jp
>>>> To:       users @ toppers.jp
>>>> Cc:       takebe @ sec.co.jp
>>>> Subject:  (toppers-users 4591) Re: SafeG - ノントラストLinuxの起動
>>>> 日時:     2016/08/17(水) 12:58:35
>>>>
>>>>
>>>>>  建部さん
>>>>>
>>>>> 本田です.
>>>>>
>>>>> すみません,i.MX6では chip_gtimer.c を使いますね.
>>>>> 90-92行目をコメントアウトするとタイマはスタートしなくなります.
>>>>>
>>>>> 以上,よろしくお願いします.
>>>>>
>>>>> On 2016/08/17 12:03, Yoshitaka Takebe wrote:
>>>>>> 本田様
>>>>>>
>>>>>> 建部です。大変お世話になっております。
>>>>>>
>>>>>>
>>>>>>> FMP側の周期タイマを初期化せずに,Linuxが起動するか確認するとよいかと思います.
>>>>>>>
>>>>>>> 方法は,次の通りです.
>>>>>>>
>>>>>>>    ./mpcore/chip_wdt.c : 89-91行目をコメントアウト
>>>>>>
>>>>>> 上記の解析を実施しようとしたのですが、
>>>>>> ご提示のchip_wdt.cは、どうやらビルドに含まれていませんでした。
>>>>>>
>>>>>> ※ #error ディレクティブを使って確認しました。
>>>>>>
>>>>>> 同フォルダにある、chip_timer.cにも、同様のタイマー起動処理があったので、
>>>>>> そちらも試してみましたが、chip_wdt.cと同様でした。
>>>>>>
>>>>>> 何らか、手順の抜けがあると、これらはビルドに含まれなくなるものでしょうか?
>>>>>>
>>>>>> 以上です。
>>>>>>
>>>>>> -----------------------返信元のメール-----------------------
>>>>>> Tue, 16 Aug 2016 23:34:15 +0900From:     Shinya Honda <honda @ ertl.jp>
>>>>>> Reply-To: users @ toppers.jp
>>>>>> To:       users @ toppers.jp
>>>>>> Cc:       takebe @ sec.co.jp
>>>>>> Subject:  (toppers-users 4588) Re: SafeG - ノントラストLinuxの起動
>>>>>> 日時:     2016/08/16(火) 23:34:15
>>>>>>
>>>>>>
>>>>>>> 建部さん
>>>>>>>
>>>>>>> 本田です.
>>>>>>>
>>>>>>> こちらで正常ブートしたログを送ります.
>>>>>>>
>>>>>>> 使用した環境は次の通りです.
>>>>>>>
>>>>>>> FMP    : fmp_imx6_gcc-20160715.zip
>>>>>>> SafeG : SafeG Release 1.2.3
>>>>>>> Yocto  : L3.10.53_1.1.0
>>>>>>>
>>>>>>> FMPはLinuxとは別のUARTを使っていますので,ログはU-Boot(NT)とLinux(NT)のみです.
>>>>>>>
>>>>>>> そちらで停止する現状の解析手順ですが,
>>>>>>>
>>>>>>> FMP側の周期タイマを初期化せずに,Linuxが起動するか確認するとよいかと思います.
>>>>>>>
>>>>>>> 方法は,次の通りです.
>>>>>>>
>>>>>>>    ./mpcore/chip_wdt.c : 89-91行目をコメントアウト
>>>>>>>
>>>>>>> これで起動したら,SafeGの切替等の問題です.
>>>>>>>
>>>>>>> 起動しない場合は,LinuxをNon-Trustで動作させるための変更が足りていない可能性がありま
>>>>>>> す.
>>>>>>>
>>>>>>> --------------------------------------------------------------------
>>>>>>> U-Boot(NT) 2014.04 (Sep 30 2015 - 17:15:04)
>>>>>>>
>>>>>>> CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
>>>>>>> CPU:   Temperature 40 C, calibration data: 0x5944de7d
>>>>>>> Reset cause: unknown reset
>>>>>>> Board: MX6-SabreSD
>>>>>>> I2C:   ready
>>>>>>> DRAM:  1008 MiB
>>>>>>> MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
>>>>>>> Using default environment
>>>>>>>
>>>>>>> No panel detected: default to Hannstar-XGA
>>>>>>> Display: Hannstar-XGA (1024x768)
>>>>>>> In:    serial
>>>>>>> Out:   serial
>>>>>>> Err:   serial
>>>>>>> Found PFUZE100 deviceid=10,revid=11
>>>>>>> Net:   FEC [PRIME]
>>>>>>> Normal Boot
>>>>>>> Hit any key to stop autoboot:  0
>>>>>>> mmc1 is current device
>>>>>>> reading boot_nt.scr
>>>>>>> ** Unable to read file boot_nt.scr **
>>>>>>> reading zImage_nt
>>>>>>> 5479968 bytes read in 266 ms (19.6 MiB/s)
>>>>>>> Booting from mmc ...
>>>>>>> reading imx6q-sabresd_nt.dtb
>>>>>>> 49639 bytes read in 25 ms (1.9 MiB/s)
>>>>>>> Kernel image @ 0x12000000 [ 0x000000 - 0x539e20 ]
>>>>>>> ## Flattened Device Tree blob at 18000000
>>>>>>>    Booting using the fdt blob at 0x18000000
>>>>>>>    Using Device Tree in place at 18000000, end 1800f1e6
>>>>>>> switch to ldo_bypass mode!
>>>>>>>
>>>>>>> Starting kernel ...
>>>>>>>
>>>>>>> Booting Linux on physical CPU 0x0
>>>>>>> Linux version 3.10.53-1.1.0_ga+g496fbe0 (honda @ XUbuntu64) (gcc version 4.8.2 (GCC) ) #16 
>>>>>>> SMP
>>>>>>> PREEMPT Wed Jun 15 00:29:35 JST 2016
>>>>>>> CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
>>>>>>> CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
>>>>>>> Machine: Freescale i.MX6 Quad/DualLite (Device Tree), model: Freescale i.MX6 Quad SABRE 
>>>>>>> Smart
>>>>>>> Device Board
>>>>>>> cma: CMA: reserved 320 MiB at 3a000000
>>>>>>> Memory policy: ECC disabled, Data cache writealloc
>>>>>>> PERCPU: Embedded 8 pages/cpu @81572000 s8960 r8192 d15616 u32768
>>>>>>> Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 256032
>>>>>>> Kernel command line: console=ttymxc0,115200 maxcpus=4 root=/dev/mmcblk2p2 rootwait rw
>>>>>>> PID hash table entries: 4096 (order: 2, 16384 bytes)
>>>>>>> Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
>>>>>>> Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
>>>>>>> Memory: 1008MB = 1008MB total
>>>>>>> Memory: 680924k/680924k available, 351268k reserved, 0K highmem
>>>>>>> Virtual kernel memory layout:
>>>>>>>     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
>>>>>>>     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
>>>>>>>     vmalloc : 0xbf800000 - 0xff000000   (1016 MB)
>>>>>>>     lowmem  : 0x80000000 - 0xbf000000   (1008 MB)
>>>>>>>     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
>>>>>>>     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
>>>>>>>       .text : 0x80008000 - 0x80c51fa8   (12584 kB)
>>>>>>>       .init : 0x80c52000 - 0x80c9d300   ( 301 kB)
>>>>>>>       .data : 0x80c9e000 - 0x80cf2d80   ( 340 kB)
>>>>>>>        .bss : 0x80cf2d80 - 0x80d59d9c   ( 413 kB)
>>>>>>> SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
>>>>>>> Preemptible hierarchical RCU implementation.
>>>>>>> NR_IRQS:16 nr_irqs:16 16
>>>>>>> L310 cache controller enabled
>>>>>>> l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x32470000, Cache size: 1048576 B
>>>>>>> sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
>>>>>>> CPU identified as i.MX6Q, silicon rev 1.2
>>>>>>> Console: colour dummy device 80x30
>>>>>>> Calibrating delay loop... 1574.50 BogoMIPS (lpj=7872512)
>>>>>>> pid_max: default: 32768 minimum: 301
>>>>>>> Mount-cache hash table entries: 512
>>>>>>> CPU: Testing write buffer coherency: ok
>>>>>>> CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
>>>>>>> Setting up static identity map for 0x8066d018 - 0x8066d070
>>>>>>> CPU1: Booted secondary processor
>>>>>>> CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
>>>>>>> CPU2: Booted secondary processor
>>>>>>> CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
>>>>>>> CPU3: Booted secondary processor
>>>>>>> CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
>>>>>>> Brought up 4 CPUs
>>>>>>> SMP: Total of 4 processors activated (6298.00 BogoMIPS).
>>>>>>> CPU: All CPU(s) started in SVC mode.
>>>>>>> devtmpfs: initialized
>>>>>>> pinctrl core: initialized pinctrl subsystem
>>>>>>> regulator-dummy: no parameters
>>>>>>> NET: Registered protocol family 16
>>>>>>> DMA: preallocated 256 KiB pool for atomic coherent allocations
>>>>>>> Use WDOG2 as reset source
>>>>>>> syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered
>>>>>>> vdd1p1: 800 <--> 1375 mV at 1125 mV
>>>>>>> vdd3p0: 2800 <--> 3150 mV at 3000 mV
>>>>>>> vdd2p5: 2000 <--> 2750 mV at 2425 mV
>>>>>>> cpu: 725 <--> 1450 mV
>>>>>>> vddpu: 725 <--> 1450 mV
>>>>>>> vddsoc: 725 <--> 1450 mV
>>>>>>> syscon 20e0000.iomuxc-gpr: regmap [mem 0x020e0000-0x020e0037] registered
>>>>>>> syscon 21bc000.ocotp-ctrl: regmap [mem 0x021bc000-0x021bffff] registered
>>>>>>> hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
>>>>>>> hw-breakpoint: maximum watchpoint size is 4 bytes.
>>>>>>> imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
>>>>>>> bio: create slab <bio-0> at 0
>>>>>>> mxs-dma 110000.dma-apbh: initialized
>>>>>>> usb_otg_vbus: 5000 mV
>>>>>>> usb_h1_vbus: 5000 mV
>>>>>>> wm8962-supply: no parameters
>>>>>>> mipi_dsi_pwr_on: no parameters
>>>>>>> sensor-supply: 3300 mV
>>>>>>> i2c-core: driver [max17135] using legacy suspend method
>>>>>>> i2c-core: driver [max17135] using legacy resume method
>>>>>>> SCSI subsystem initialized
>>>>>>> usbcore: registered new interface driver usbfs
>>>>>>> usbcore: registered new interface driver hub
>>>>>>> usbcore: registered new device driver usb
>>>>>>> i2c i2c-0: IMX I2C adapter registered
>>>>>>> i2c i2c-1: IMX I2C adapter registered
>>>>>>> i2c i2c-2: IMX I2C adapter registered
>>>>>>> Linux video capture interface: v2.00
>>>>>>> pps_core: LinuxPPS API ver. 1 registered
>>>>>>> pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti @ linux.it>
>>>>>>> PTP clock support registered
>>>>>>> imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
>>>>>>> imx-ipuv3 2800000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
>>>>>>> mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed
>>>>>>> mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
>>>>>>> MIPI CSI2 driver module loaded
>>>>>>> Advanced Linux Sound Architecture Driver Initialized.
>>>>>>> Bluetooth: Core ver 2.16
>>>>>>> NET: Registered protocol family 31
>>>>>>> Bluetooth: HCI device and connection manager initialized
>>>>>>> Bluetooth: HCI socket layer initialized
>>>>>>> Bluetooth: L2CAP socket layer initialized
>>>>>>> Bluetooth: SCO socket layer initialized
>>>>>>> cfg80211: Calling CRDA to update world regulatory domain
>>>>>>> pureg-dummy: no parameters
>>>>>>> Switching to clocksource mxc_timer1
>>>>>>> NET: Registered protocol family 2
>>>>>>> TCP established hash table entries: 8192 (order: 4, 65536 bytes)
>>>>>>> TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
>>>>>>> TCP: Hash tables configured (established 8192 bind 8192)
>>>>>>> TCP: reno registered
>>>>>>> UDP hash table entries: 512 (order: 2, 16384 bytes)
>>>>>>> UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
>>>>>>> NET: Registered protocol family 1
>>>>>>> RPC: Registered named UNIX socket transport module.
>>>>>>> RPC: Registered udp transport module.
>>>>>>> RPC: Registered tcp transport module.
>>>>>>> RPC: Registered tcp NFSv4.1 backchannel transport module.
>>>>>>> hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
>>>>>>> imx6_busfreq busfreq.16: DDR medium rate not supported.
>>>>>>> Bus freq driver module loaded
>>>>>>> futex hash table entries: 1024 (order: 4, 65536 bytes)
>>>>>>> VFS: Disk quotas dquot_6.5.2
>>>>>>> Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
>>>>>>> NFS: Registering the id_resolver key type
>>>>>>> Key type id_resolver registered
>>>>>>> Key type id_legacy registered
>>>>>>> jffs2: version 2.2. (NAND) c 2001-2006 Red Hat, Inc.
>>>>>>> fuse init (API version 7.22)
>>>>>>> msgmni has been set to 1969
>>>>>>> io scheduler noop registered
>>>>>>> io scheduler deadline registered
>>>>>>> io scheduler cfq registered (default)
>>>>>>> imx-weim 21b8000.weim: WEIM driver registered.
>>>>>>> mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed
>>>>>>> MIPI DSI driver module loaded
>>>>>>> mxc_sdc_fb fb.31: registered mxc display driver ldb
>>>>>>> imx-ipuv3 2800000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
>>>>>>> Console: switching to colour frame buffer device 128x48
>>>>>>> mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0xa:0xa0:0xc1
>>>>>>> fbcvt: 1920x1080 @ 60: CVT Name - 2.073M9
>>>>>>> mxc_sdc_fb fb.32: registered mxc display driver hdmi
>>>>>>> mxc_sdc_fb fb.33: registered mxc display driver lcd
>>>>>>> mxc_sdc_fb fb.33: ipu0-di0 already in use
>>>>>>> mxc_sdc_fb: probe of fb.33 failed with error -16
>>>>>>> mxc_sdc_fb fb.34: registered mxc display driver ldb
>>>>>>> imx-sdma 20ec000.sdma: no iram assigned, using external mem
>>>>>>> imx-sdma 20ec000.sdma: loaded firmware 1.1
>>>>>>> imx-sdma 20ec000.sdma: initialized
>>>>>>> pfuze100-regulator 1-0008: Full lay: 1, Metal lay: 1
>>>>>>> pfuze100-regulator 1-0008: FAB: 0, FIN: 0
>>>>>>> pfuze100-regulator 1-0008: pfuze100 found.
>>>>>>> SW1AB: 300 <--> 1875 mV at 1150 mV
>>>>>>> SW1C: 300 <--> 1875 mV at 1175 mV
>>>>>>> SW2: 800 <--> 3300 mV at 3300 mV
>>>>>>> SW3A: 400 <--> 1975 mV at 1500 mV
>>>>>>> SW3B: 400 <--> 1975 mV at 1500 mV
>>>>>>> SW4: 800 <--> 3300 mV at 3150 mV
>>>>>>> SWBST: 5000 <--> 5150 mV at 5000 mV
>>>>>>> VSNVS: 1000 <--> 3000 mV at 3000 mV
>>>>>>> VREFDDR: 750 mV
>>>>>>> VGEN1: 800 <--> 1550 mV at 1500 mV
>>>>>>> VGEN2: 800 <--> 1550 mV at 1500 mV
>>>>>>> VGEN3: 1800 <--> 3300 mV at 2800 mV
>>>>>>> VGEN4: 1800 <--> 3300 mV at 1800 mV
>>>>>>> VGEN5: 1800 <--> 3300 mV at 3000 mV
>>>>>>> VGEN6: 1800 <--> 3300 mV at 3300 mV
>>>>>>> Serial: IMX driver
>>>>>>> 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
>>>>>>> console [ttymxc0] enabled
>>>>>>> serial: Freescale lpuart driver
>>>>>>> imx sema4 driver is registered.
>>>>>>> [drm] Initialized drm 1.1.0 20060810
>>>>>>> [drm] Initialized vivante 1.0.0 20120216 on minor 0
>>>>>>> brd: module loaded
>>>>>>> loop: module loaded
>>>>>>> Wait for CR ACK error!
>>>>>>> sata phy RX_PLL is stable!
>>>>>>> ahci: SSS flag set, parallel bus scan disabled
>>>>>>> ahci ahci: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
>>>>>>> ahci ahci: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
>>>>>>> scsi0 : ahci_platform
>>>>>>> ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 71
>>>>>>> m25p80 spi32766.0: found mr25h256, expected m25p32
>>>>>>> m25p80 spi32766.0: mr25h256 (32 Kbytes)
>>>>>>> spi_imx 2008000.ecspi: probed
>>>>>>> libphy: fec_enet_mii_bus: probed
>>>>>>> fec 2188000.ethernet eth0: registered PHC device 0
>>>>>>> ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
>>>>>>> usbcore: registered new interface driver usb-storage
>>>>>>> ci_hdrc ci_hdrc.1: doesn't support gadget
>>>>>>> ci_hdrc ci_hdrc.1: EHCI Host Controller
>>>>>>> ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
>>>>>>> ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
>>>>>>> hub 1-0:1.0: USB hub found
>>>>>>> hub 1-0:1.0: 1 port detected
>>>>>>> mousedev: PS/2 mouse device common for all mice
>>>>>>> elan-touch 2-0010: elan - Read Hello Packet Failed
>>>>>>> elan-touch: probe of 2-0010 failed with error -22
>>>>>>> egalax_ts 1-0004: Failed to read firmware version
>>>>>>> egalax_ts: probe of 1-0004 failed with error -5
>>>>>>> egalax_ts 2-0004: Failed to read firmware version
>>>>>>> egalax_ts: probe of 2-0004 failed with error -5
>>>>>>> input: max11801_ts as /devices/soc0/soc.1/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/input/
>>>>>>> input0
>>>>>>> i2c-core: driver [isl29023] using legacy suspend method
>>>>>>> i2c-core: driver [isl29023] using legacy resume method
>>>>>>> snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
>>>>>>> i2c /dev entries driver
>>>>>>> mxc_v4l2_output v4l2_out.39: V4L2 device registered as video16
>>>>>>> mxc_v4l2_output v4l2_out.39: V4L2 device registered as video17
>>>>>>> mxc_v4l2_output v4l2_out.39: V4L2 device registered as video18
>>>>>>> mxc_v4l2_output v4l2_out.39: V4L2 device registered as video19
>>>>>>> mxc_v4l2_output v4l2_out.39: V4L2 device registered as video20
>>>>>>> ata1: SATA link down (SStatus 0 SControl 300)
>>>>>>> mag3110 2-000e: check mag3110 chip ID
>>>>>>> input: mag3110 as /devices/virtual/input/input1
>>>>>>> mag3110 2-000e: mag3110 is probed
>>>>>>> i2c-core: driver [mag3110] using legacy suspend method
>>>>>>> i2c-core: driver [mag3110] using legacy resume method
>>>>>>> input: mma845x as /devices/virtual/input/input2
>>>>>>> imx2-wdt 20c0000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
>>>>>>> Bluetooth: HCI UART driver ver 2.2
>>>>>>> Bluetooth: HCI H4 protocol initialized
>>>>>>> Bluetooth: HCI BCSP protocol initialized
>>>>>>> Bluetooth: HCIATH3K protocol initialized
>>>>>>> usbcore: registered new interface driver bcm203x
>>>>>>> usbcore: registered new interface driver btusb
>>>>>>> Bluetooth: Generic Bluetooth SDIO driver ver 0.1
>>>>>>> usbcore: registered new interface driver ath3k
>>>>>>> cpuidle: using governor ladder
>>>>>>> cpuidle: using governor menu
>>>>>>> sdhci: Secure Digital Host Controller Interface driver
>>>>>>> sdhci: Copyright(c) Pierre Ossman
>>>>>>> sdhci-pltfm: SDHCI platform and OF driver helper
>>>>>>> mmc1: no vqmmc regulator found
>>>>>>> mmc1: no vmmc regulator found
>>>>>>> mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
>>>>>>> mmc2: no vqmmc regulator found
>>>>>>> mmc2: no vmmc regulator found
>>>>>>> mmc2: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
>>>>>>> mmc3: no vqmmc regulator found
>>>>>>> mmc3: no vmmc regulator found
>>>>>>> mmc3: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
>>>>>>> Galcore version 5.0.11.25762
>>>>>>> mmc2: new high speed SDHC card at address aaa5
>>>>>>> mmcblk2: mmc2:aaa5 SW08G 7.50 GiB
>>>>>>>  mmcblk2: p1 p2
>>>>>>> mmc3: new high speed DDR MMC card at address 0001
>>>>>>> mmcblk3: mmc3:0001 SEM08G 7.39 GiB
>>>>>>> mmcblk3boot0: mmc3:0001 SEM08G partition 1 1.00 MiB
>>>>>>> mmcblk3boot1: mmc3:0001 SEM08G partition 2 1.00 MiB
>>>>>>> mmcblk3rpmb: mmc3:0001 SEM08G partition 3 128 KiB
>>>>>>>  mmcblk3: unknown partition table
>>>>>>>  mmcblk3boot1: unknown partition table
>>>>>>>  mmcblk3boot0: unknown partition table
>>>>>>> mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
>>>>>>> mxc_asrc 2034000.asrc: mxc_asrc registered
>>>>>>> mxc_vpu 2040000.vpu: VPU initialized
>>>>>>> leds-gpio leds.21: pins are not configured from the driver
>>>>>>> usbcore: registered new interface driver usbhid
>>>>>>> usbhid: USB HID core driver
>>>>>>> wm8962 0-001a: customer id 0 revision D
>>>>>>> input: WM8962 Beep Generator as /devices/soc0/soc.1/2100000.aips-bus/21a0000.i2c/i2c-0/0-
>>>>>>> 001a
>>>>>>> /
>>>>>>> input/input3
>>>>>>> imx-wm8962 sound.29:  wm8962 <-> 202c000.ssi mapping ok
>>>>>>> imx-audio-hdmi sound-hdmi.30:  hdmi-hifi <-> hdmi_audio.17 mapping ok
>>>>>>> NET: Registered protocol family 26
>>>>>>> TCP: cubic registered
>>>>>>> NET: Registered protocol family 10
>>>>>>> sit: IPv6 over IPv4 tunneling driver
>>>>>>> NET: Registered protocol family 17
>>>>>>> Bluetooth: RFCOMM TTY layer initialized
>>>>>>> Bluetooth: RFCOMM socket layer initialized
>>>>>>> Bluetooth: RFCOMM ver 1.11
>>>>>>> Bluetooth: BNEP (Ethernet Emulation) ver 1.3
>>>>>>> Bluetooth: BNEP filters: protocol multicast
>>>>>>> Bluetooth: BNEP socket layer initialized
>>>>>>> Bluetooth: HIDP (Human Interface Emulation) ver 1.2
>>>>>>> Bluetooth: HIDP socket layer initialized
>>>>>>> 8021q: 802.1Q VLAN Support v1.8
>>>>>>> Key type dns_resolver registered
>>>>>>> VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
>>>>>>> VGEN3: disabling
>>>>>>> VGEN2: disabling
>>>>>>> VGEN1: disabling
>>>>>>> SWBST: disabling
>>>>>>> SW4: disabling
>>>>>>> wm8962-supply: disabling
>>>>>>> usb_otg_vbus: disabling
>>>>>>> regulator-dummy: disabling
>>>>>>> imx mcc test is registered.
>>>>>>> input: gpio-keys.28 as /devices/soc0/gpio-keys.28/input/input4
>>>>>>> snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:07:36 UTC (456)
>>>>>>> ALSA device list:
>>>>>>>   #0: wm8962-audio
>>>>>>>   #1: imx-hdmi-soc
>>>>>>> kjournald starting.  Commit interval 5 seconds
>>>>>>> EXT3-fs (mmcblk2p2): using internal journal
>>>>>>> EXT3-fs (mmcblk2p2): recovery complete
>>>>>>> EXT3-fs (mmcblk2p2): mounted filesystem with ordered data mode
>>>>>>> VFS: Mounted root (ext3 filesystem) on device 179:2.
>>>>>>> devtmpfs: mounted
>>>>>>> Freeing unused kernel memory: 300K (80c52000 - 80c9d000)
>>>>>>> INIT: version 2.88 booting
>>>>>>> Starting udev
>>>>>>> udevd[163]: starting version 182
>>>>>>> ov5640_read_reg:write reg error:reg=300a
>>>>>>> ov5640_read_reg:write reg error:reg=300a
>>>>>>> camera ov5640 is not found
>>>>>>> camera ov5640_mipi is not found
>>>>>>> ov5642_read_reg:write reg error:reg=300a
>>>>>>> camera ov5642 is not found
>>>>>>> ERROR: v4l2 capture: slave not found!
>>>>>>> ERROR: v4l2 capture: slave not found!
>>>>>>> FAT-fs (mmcblk2p1): Volume was not properly unmounted. Some data may be corrupt. Please run
>>>>>>> fsck.
>>>>>>> Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
>>>>>>> bootlogd.
>>>>>>> ALSA: Restoring mixer settings...
>>>>>>> Found hardware: "wm8962-audio" "" "" "" ""
>>>>>>> Hardware is initialized using a generic method
>>>>>>> No state is present for card imxhdmisoc
>>>>>>> Found hardware: "imx-hdmi-soc" "" "" "" ""
>>>>>>> Hardware is initialized using a generic method
>>>>>>> No state is present for card imxhdmisoc
>>>>>>> net.ipv4.conf.default.rp_filter = 1
>>>>>>> net.ipv4.conf.all.rp_filter = 1
>>>>>>> Thu Aug 27 03:24:00 UTC 2015
>>>>>>> INIT: Entering runlevel: 5
>>>>>>> Configuring network interfaces... fec 2188000.ethernet eth0: Freescale FEC PHY driver
>>>>>>> [Generic
>>>>>>> PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq=-1)
>>>>>>> IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>>> udhcpc (v1.22.1) started
>>>>>>> Sending discover...
>>>>>>> Sending discover...
>>>>>>> Sending discover...
>>>>>>> No lease, failing
>>>>>>> Starting Xserver
>>>>>>> Starting system message bus: dbus.
>>>>>>> Starting Connection Manager
>>>>>>> Starting Dropbear SSH server: dropbear.
>>>>>>> Starting rpcbind daemon...done.
>>>>>>> creating NFS state directory: done
>>>>>>> starting statd: done
>>>>>>> Starting advanced power management daemon: No APM support in kernel
>>>>>>> (failed.)
>>>>>>> NFS daemon support not enabled in kernel
>>>>>>> Starting syslogd/klogd: done
>>>>>>>  * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon    [ ok ]
>>>>>>> Starting Telephony daemon
>>>>>>> Starting Linux NFC daemon
>>>>>>> Starting OProfileUI server
>>>>>>> Running local boot scripts (/etc/rc.local).
>>>>>>> Stopping Bootlog daemon: bootlogd.
>>>>>>>
>>>>>>> Poky (Yocto Project Reference Distro) 1.6.2 imx6qsabresd /dev/ttymxc0
>>>>>>>
>>>>>>> imx6qsabresd login:
>>>>>>> -------------------------------------------------------------------------------------------
>>>>>>> --
>>>>>>> --
>>>>>>> --
>>>>>>>
>>>>>>> 以上,よろしくお願いします.
>>>>>>> On 2016/08/12 14:24, Yoshitaka Takebe wrote:
>>>>>>>> セックの建部です。
>>>>>>>>
>>>>>>>> 度々、お世話になっております。
>>>>>>>>
>>>>>>>> SafeGにつきまして、引き続き利用させて頂いておりますが、
>>>>>>>> 手順に従って、NT OSとしてLinuxを起動させようとした時に、
>>>>>>>> 起動しきらない、という事象に陥っています。
>>>>>>>>
>>>>>>>> 同様の事象にあった方や、解決方法についてご存知の方がいらっしゃいましたら
>>>>>>>> ご助言頂ければと思い、質問させて頂きました。
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> 詳細な情報として、起動時のログ(コンソール出力の結果)を添付させて頂きました。
>>>>>>>>
>>>>>>>> * "起動しきらない"というのは、ログインのためのアカウント/パスワード入力
>>>>>>>>   まで行き着かない、という意味です。
>>>>>>>>   ログをご参照頂ければ分かりますが、
>>>>>>>>   "INIT〜"まで表示できているので、Linuxの立上りまで、動き出しているように
>>>>>>>>   見えます。
>>>>>>>>
>>>>>>>>
>>>>>>>> ・linux_boot_succesed.txt:SafeGのパッチを当てずに、Linuxのみで起動した時のログ
>>>>>>>>
>>>>>>>>       → まず、SafeGを使わず、Linuxのみ、起動しました。この場合は、
>>>>>>>>          ログインまで成功しました。
>>>>>>>>
>>>>>>>> ・nt_linux_boot_fail.txt:SafeGのパッチをLinux,U-Bootに当てて、ビルド,組込(SD起動)
>>>>>>>>                           を行った上で起動した時のログ
>>>>>>>>
>>>>>>>>       → 記述した通り、ログインまで辿りつきませんでした。
>>>>>>>>
>>>>>>>>
>>>>>>>> 補足事項:
>>>>>>>>   ・yoctoのレシピとしては、"core-image-base"を使用しました。
>>>>>>>>
>>>>>>>>   ・T_OSとしては、TOPPERS/FMPを利用しています。
>>>>>>>>     添付のサンプルを、改変したものを使用しています。
>>>>>>>>     NT_Linuxのメモリ領域に書き込むようなことはしておりません。
>>>>>>>>
>>>>>>>>   ・NT_Linuxの起動処理実施中には、T側のTOPPERS/FMPは動作しておりましたが、
>>>>>>>>     NT_Linux側の起動処理が停止したときには、T側も実行できていないようです。
>>>>>>>>     (GPIOを利用して確認しました。)
>>>>>>>>
>>>>>>>>
>>>>>>>> 以上です。
>>>>>>>>
>>>>>>>> ======================================================================
>>>>>>>>     建部  貴隆 ( Yoshitaka Takebe )
>>>>>>>>
>>>>>>>>     株式会社セック  開発本部  第四開発部 (宇宙先端システム担当)
>>>>>>>>
>>>>>>>>     ADR    : 東京都世田谷区用賀4-10-1 世田谷ビジネススクエア
>>>>>>>>     TEL    : 03-5491-4404
>>>>>>>>     FAX    : 03-5491-4771
>>>>>>>>     E-Mail : takebe @ sec.co.jp
>>>>>>>> ----------------------------------------------------------------------
>>>>>>>>
>>>>>>>> この電子メールの内容および添付されている情報は、機密情報であると同時に、
>>>>>>>> 宛先として意図した特定の受信者のみに送信いたしております。当方の誤送信
>>>>>>>> 等により、心当たりのない方が受信された場合は、大変お手数ですが、受信さ
>>>>>>>> れましたメール内容は削除していただきますようお願いいたします。
>>>>>>>> ======================================================================
>>>>>>>>
>>>>>>
>>>>>>
>>>>>> ======================================================================
>>>>>>     建部  貴隆 ( Yoshitaka Takebe )
>>>>>>
>>>>>>     株式会社セック  開発本部  第四開発部 (宇宙先端システム担当)
>>>>>>
>>>>>>     ADR    : 東京都世田谷区用賀4-10-1 世田谷ビジネススクエア
>>>>>>     TEL    : 03-5491-4404
>>>>>>     FAX    : 03-5491-4771
>>>>>>     E-Mail : takebe @ sec.co.jp
>>>>>> ----------------------------------------------------------------------
>>>>>>
>>>>>> この電子メールの内容および添付されている情報は、機密情報であると同時に、
>>>>>> 宛先として意図した特定の受信者のみに送信いたしております。当方の誤送信
>>>>>> 等により、心当たりのない方が受信された場合は、大変お手数ですが、受信さ
>>>>>> れましたメール内容は削除していただきますようお願いいたします。
>>>>>> ======================================================================
>>>>>>
>>>>
>>>>
>>>>
>>>> ======================================================================
>>>>     建部  貴隆 ( Yoshitaka Takebe )
>>>>
>>>>     株式会社セック  開発本部  第四開発部 (宇宙先端システム担当)
>>>>
>>>>     ADR    : 東京都世田谷区用賀4-10-1 世田谷ビジネススクエア
>>>>     TEL    : 03-5491-4404
>>>>     FAX    : 03-5491-4771
>>>>     E-Mail : takebe @ sec.co.jp
>>>> ----------------------------------------------------------------------
>>>>
>>>> この電子メールの内容および添付されている情報は、機密情報であると同時に、
>>>> 宛先として意図した特定の受信者のみに送信いたしております。当方の誤送信
>>>> 等により、心当たりのない方が受信された場合は、大変お手数ですが、受信さ
>>>> れましたメール内容は削除していただきますようお願いいたします。
>>>> ======================================================================
>>>>
>>>
>>
>>
>>
>> ======================================================================
>>     建部  貴隆 ( Yoshitaka Takebe )
>>
>>     株式会社セック  開発本部  第四開発部 (宇宙先端システム担当)
>>
>>     ADR    : 東京都世田谷区用賀4-10-1 世田谷ビジネススクエア
>>     TEL    : 03-5491-4404
>>     FAX    : 03-5491-4771
>>     E-Mail : takebe @ sec.co.jp
>> ----------------------------------------------------------------------
>>
>> この電子メールの内容および添付されている情報は、機密情報であると同時に、
>> 宛先として意図した特定の受信者のみに送信いたしております。当方の誤送信
>> 等により、心当たりのない方が受信された場合は、大変お手数ですが、受信さ
>> れましたメール内容は削除していただきますようお願いいたします。
>> ======================================================================
>>
>



======================================================================
    建部  貴隆 ( Yoshitaka Takebe )
    
    株式会社セック  開発本部  第四開発部 (宇宙先端システム担当)
    
    ADR    : 東京都世田谷区用賀4-10-1 世田谷ビジネススクエア
    TEL    : 03-5491-4404
    FAX    : 03-5491-4771
    E-Mail : takebe @ sec.co.jp
----------------------------------------------------------------------

この電子メールの内容および添付されている情報は、機密情報であると同時に、
宛先として意図した特定の受信者のみに送信いたしております。当方の誤送信
等により、心当たりのない方が受信された場合は、大変お手数ですが、受信さ
れましたメール内容は削除していただきますようお願いいたします。
======================================================================