Facing issue while testing RZ/N1D Eval. kit on provided Linux Binaries. Need urgent support.

I am following r01qs0022ed0005-rzn1d-quick-start-guide document for initial startup.

 I am getting Error while booting Linux. Please check and help to get support.

 I tried till Chapter 3.1.

  • 1. Bring up the board with Linux and U-Boot

After point 7.

  • Run Linux

I am getting below error. Not able to sort it out.

  • Unknown command '0x80008000' - try 'help'

 

Please find Command prompt log attached FYR.

 

** BOOTLOADER STAGE0 for RZN1 **
Boot source: QSPI
STATUS: Valid SPKG header not found (100 QSPI Flash 256-byte blocks read)
STATUS: Valid SPKG header not found (200 QSPI Flash 256-byte blocks read)
STATUS: Valid SPKG header not found (300 QSPI Flash 256-byte blocks read)
STATUS: Valid SPKG header not found (400 QSPI Flash 256-byte blocks read)
STATUS: Valid SPKG header not found (500 QSPI Flash 256-byte blocks read)
00 BOOTLOADER STAGE0 Success
*** Bootloader stage0 END ***
*** Execute 2nd Stage Bootloader which has been loaded and verified ***

U-Boot 2017.01-00097-g5b15177ecd (Jul 24 2019 - 10:15:25 +0100)
Model: RZ/N1D Demo Board
DRAM:  256 MiB
MMC:   sdhci@40100000: 0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB, mappe                                             d at 10000000
In:    serial@40060000
Out:   serial@40060000
Err:   serial@40060000
Net:   , dwmac.44002000
Hit any key to stop autoboot:  0
=> pri
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/mtdblock7 init=/init\
rootwait ip=192.168.1.50:::::eth0 earlyprintk clk_ignore_unused
bootcmd=sf probe && sf read 0x8ffe0000 b0000 20000 && sf read\
0x80008000 1d0000 600000 && bootm 0x80008000 - 0x8ffe0000
bootdelay=1
dfu_ext_info=sf sf_spl raw 0 10000;sf sf_rpkgt raw 10000 10000;sf sf_uboot raw 20000 8000                                             0;sf sf_env raw a0000 10000;sf sf_dtb raw b0000 20000;sf sf_cm3 raw d0000 100000;sf sf_ke                                             rnel raw 1d0000 600000;sf sf_data raw 7d0000 0;sf sf_vxworks raw d0000 600000;ram r_kerne                                             l ram 80008000 d80000;ram r_vxworks ram 80008000 d80000
eth1addr=74:90:50:02:00:FE
eth2addr=74:90:50:40:E7:62
eth3addr=74:90:50:40:E7:E2
eth4addr=74:90:50:40:E7:12
ethact=dwmac.44002000
ethaddr=74:90:50:02:00:FD
fdt_high=0xffffffff
fdtcontroladdr=409e420
gatewayip=192.168.1.30
ipaddr=192.168.0.3
loadaddr=80008000
netmask=255.255.255.0
serverip=192.168.0.2
stderr=serial@40060000
stdin=serial@40060000
stdout=serial@40060000
ver=U-Boot 2017.01-00097-g5b15177ecd (Jul 24 2019 - 10:15:25 +0100)
Environment size: 1081/8188 bytes
=> dfu
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB, mappe                                             d at 10000000
#DOWNLOAD ... OK
Ctrl+C to exit ...
########################################################DOWNLOAD ... OK
Ctrl+C to exit ...
#########################################################################################                                             ###########################################################DOWNLOAD ... OK
Ctrl+C to exit ...
=> setenv -f ethaddr 74:90:50:C0:EE:67
=> setenv -f ethaddr 74:90:50:C0:EE:E7
=> saveenv
Saving Environment to SPI Flash...
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB, mappe                                             d at 10000000
Erasing SPI flash...Writing to SPI flash...done
=> pri
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/mtdblock7 init=/init\
rootwait ip=192.168.1.50:::::eth0 earlyprintk clk_ignore_unused
bootcmd=sf probe && sf read 0x8ffe0000 b0000 20000 && sf read\
0x80008000 1d0000 600000 && bootm 0x80008000 - 0x8ffe0000
bootdelay=1
dfu_ext_info=sf sf_spl raw 0 10000;sf sf_rpkgt raw 10000 10000;sf sf_uboot raw 20000 8000                                             0;sf sf_env raw a0000 10000;sf sf_dtb raw b0000 20000;sf sf_cm3 raw d0000 100000;sf sf_ke                                             rnel raw 1d0000 600000;sf sf_data raw 7d0000 0;sf sf_vxworks raw d0000 600000;ram r_kerne                                             l ram 80008000 d80000;ram r_vxworks ram 80008000 d80000
eth1addr=74:90:50:02:00:FE
eth2addr=74:90:50:40:E7:62
eth3addr=74:90:50:40:E7:E2
eth4addr=74:90:50:40:E7:12
ethact=dwmac.44002000
ethaddr=74:90:50:C0:EE:E7
fdt_high=0xffffffff
fdtcontroladdr=409e420
gatewayip=192.168.1.30
ipaddr=192.168.0.3
loadaddr=80008000
netmask=255.255.255.0
serverip=192.168.0.2
stderr=serial@40060000
stdin=serial@40060000
stdout=serial@40060000
ver=U-Boot 2017.01-00097-g5b15177ecd (Jul 24 2019 - 10:15:25 +0100)
Environment size: 1081/8188 bytes
=> setenv -f ethaddr 74:90:50:C0:EE:67
=> setenv -f eth1addr 74:90:50:C0:EE:E7
=saveenv
Saving Environment to SPI Flash...
Erasing SPI flash...Writing to SPI flash...done
=pri
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/mtdblock7 init=/init\
rootwait ip=192.168.1.50:::::eth0 earlyprintk clk_ignore_unused
bootcmd=sf probe && sf read 0x8ffe0000 b0000 20000 && sf read\
0x80008000 1d0000 600000 && bootm 0x80008000 - 0x8ffe0000
bootdelay=1
dfu_ext_info=sf sf_spl raw 0 10000;sf sf_rpkgt raw 10000 10000;sf sf_uboot raw 20000 8000                                             0;sf sf_env raw a0000 10000;sf sf_dtb raw b0000 20000;sf sf_cm3 raw d0000 100000;sf sf_ke                                             rnel raw 1d0000 600000;sf sf_data raw 7d0000 0;sf sf_vxworks raw d0000 600000;ram r_kerne                                             l ram 80008000 d80000;ram r_vxworks ram 80008000 d80000
eth1addr=74:90:50:C0:EE:E7
eth1addr=74:90:50:02:00:FE
eth2addr=74:90:50:40:E7:62
eth3addr=74:90:50:40:E7:E2
eth4addr=74:90:50:40:E7:12
ethact=dwmac.44002000
ethaddr=74:90:50:C0:EE:67
fdt_high=0xffffffff
fdtcontroladdr=409e420
gatewayip=192.168.1.30
ipaddr=192.168.0.3
loadaddr=80008000
netmask=255.255.255.0
serverip=192.168.0.2
stderr=serial@40060000
stdin=serial@40060000
stdout=serial@40060000
ver=U-Boot 2017.01-00097-g5b15177ecd (Jul 24 2019 - 10:15:25 +0100)
Environment size: 1112/8188 bytes
=> setenv bootargs "console=ttyS0,115200 root=/dev/mtdblock7 init=/init
> rootwait ip=192.168.1.50:::::eth0 earlyprintk clk_ignore_unused"
=> setenv bootcmd "sf probe && sf read 0x8ffe0000 b0000 20000 && sf read
> 0x80008000 1d0000 600000 && bootm 0x80008000 - 0x8ffe0000"
=> saveenv
Saving Environment to SPI Flash...
Erasing SPI flash...Writing to SPI flash...done
=>
** BOOTLOADER STAGE0 for RZN1 **
Boot source: QSPI
STATUS: Valid SPKG header not found (100 QSPI Flash 256-byte blocks read)
STATUS: Valid SPKG header not found (200 QSPI Flash 256-byte blocks read)
STATUS: Valid SPKG header not found (300 QSPI Flash 256-byte blocks read)
STATUS: Valid SPKG header not found (400 QSPI Flash 256-byte blocks read)
STATUS: Valid SPKG header not found (500 QSPI Flash 256-byte blocks read)
00 BOOTLOADER STAGE0 Success
*** Bootloader stage0 END ***
*** Execute 2nd Stage Bootloader which has been loaded and verified ***

U-Boot 2017.01-00097-g5b15177ecd (Jul 24 2019 - 10:15:25 +0100)
Model: RZ/N1D Demo Board
DRAM:  256 MiB
MMC:   sdhci@40100000: 0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB, mapped at 10000000
In:    serial@40060000
Out:   serial@40060000
Err:   serial@40060000
Net:   , dwmac.44002000
Hit any key to stop autoboot:  0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB, mapped at 10000000
device 0 offset 0xb0000, size 0x20000
SF: 131072 bytes @ 0xb0000 Read: OK
sf - SPI flash sub-system
Usage:
sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus
                                  and chip select
sf read addr offset|partition len       - read `len' bytes starting at
                                          `offset' or from start of mtd
                                          `partition'to memory at `addr'
sf write addr offset|partition len      - write `len' bytes from memory
                                          at `addr' to flash at `offset'
                                          or to start of mtd `partition'
sf erase offset|partition [+]len        - erase `len' bytes from `offset'
                                          or from start of mtd `partition'
                                         `+len' round up `len' to block size
sf update addr offset|partition len     - erase and write `len' bytes from memory
                                          at `addr' to flash at `offset'
                                          or to start of mtd `partition'
sf protect lock/unlock sector len       - protect/unprotect 'len' bytes starting
                                          at address 'sector'
Unknown command '0x80008000' - try 'help'
=>
  • I see you did this:

    => setenv bootargs "console=ttyS0,115200 root=/dev/mtdblock7 init=/init

    > rootwait ip=192.168.1.50:::::eth0 earlyprintk clk_ignore_unused"

    => setenv bootcmd "sf probe && sf read 0x8ffe0000 b0000 20000 && sf read

    > 0x80008000 1d0000 600000 && bootm 0x80008000 - 0x8ffe0000"

    => saveenv

     

    But, based on the error messages, my guess is that you put a line feed in the middle of those commands.

    When entering the commands, make sure they are all on one line.

    => setenv bootargs "console=ttyS0,115200 root=/dev/mtdblock7 init=/init rootwait ip=192.168.1.50:::::eth0 earlyprintk clk_ignore_unused"

    => setenv bootcmd "sf probe && sf read 0x8ffe0000 b0000 20000 && sf read 0x80008000 1d0000 600000 && bootm x80008000 - 0x8ffe0000"

    => saveenv

  • In reply to Chris:

    Dear Chris,

    Thanks a lot. This helped me. But some more issue before loading.

    Please check below log.

    Model: RZ/N1D Demo Board

    DRAM:  256 MiB

    MMC:   sdhci@40100000: 0

    SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB, mapped at 10000000

    In:    serial@40060000

    Out:   serial@40060000

    Err:   serial@40060000

    Net:   dwmac.44000000, dwmac.44002000

    Hit any key to stop autoboot:  0

    SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB, mapped at 10000000

    device 0 offset 0xb0000, size 0x20000

    SF: 131072 bytes @ 0xb0000 Read: OK

    device 0 offset 0x1d0000, size 0x600000

    SF: 6291456 bytes @ 0x1d0000 Read: OK

    bootm - boot application image from memory

    Usage:

    bootm [addr [arg ...]]

       - boot application image stored in memory

           passing arguments 'arg ...'; when booting a Linux kernel,

           'arg' can be the address of an initrd image

           When booting a Linux kernel which requires a flat device-tree

           a third argument is required which is the address of the

           device-tree blob. To boot that kernel without an initrd image,

           use a '-' for the second argument. If you do not pass a third

           a bd_info struct will be passed instead

    Sub-commands to do part of the bootm sequence.  The sub-commands must be

    issued in the order below (it's ok to not issue all sub-commands):

           start [addr [arg ...]]

           loados  - load OS image

           ramdisk - relocate initrd, set env initrd_start/initrd_end

           fdt     - relocate flat device tree

           cmdline - OS specific command line processing/setup

           bdt     - OS specific bd_t processing

           prep    - OS specific prep before relocation or go

           go      - start OS

    Also please help to share sample document to test all 5 Ethernet Ports on Renesas RZ/N1D-DB including RZ/N1-EB  using Linux binaries.

  • In reply to Rashik:

    I was missing a "0" in the address of the bootm command

    => setenv bootcmd "sf probe && sf read 0x8ffe0000 b0000 20000 && sf read 0x80008000 1d0000 600000 && bootm 0x80008000 - 0x8ffe0000"

     

    Also please help to share sample document to test all 5 Ethernet Ports on Renesas RZ/N1D-DB including RZ/N1-EB  using Linux binaries.

    Sorry, I do not use the RZ/N1D board.

     

    Chris

  • In reply to Chris:

    Dear Chris,

    Thanks. Above answer helped me.

    I struck with two more errors while following Linux related documents to compile U-Boot and Linux.

    Please check and advise any mistake happening.

    1. Referring document ->  RZN1-U-Boot-User-Manual.

    Referring below points in document.

    4.4 U-Boot

    4.4.1 Setup

    On your host PC, the following command will download the RZ/N1 branch for U-Boot, including all

    commit history. Note that it will result in a large download

    git clone 

    It is not opening above said link in document. Please check below log.

    rashik@ubuntu:~/RZN1D/ETH$ git clone 

    Cloning into 'u-boot'...

    fatal: unable to access '': Could not resolve host: git.denx.de

     

    2. While Referring RZN1-Linux-User-Manual.

    Referring below points in document.

    2 BUILD SETUP
    2.1 Development Environment
    The software package requires a host PC with internet access in order to cross-compile the
    software. The software package has been tested using a host PC running Ubuntu 16.04 LTS.
    The instructions assume the
    RELEASE_DIR environment variable is set to a directory containing
    this release installed on your host PC.

    I did not understand below instruction. What action to be taken.

    -> The instructions assume the RELEASE_DIR environment variable is set to a directory containing
    this release installed on your host PC.

     

    Later while follwing below points in same document getting error.

    RZ/N1 requires patches to the Rocko release to support the VPFv4d16 floating-point coprocessor.
    To apply them, run:
    git am ${RELEASE_DIR}/yocto/rocko/0001-ARM-Add-Cortex-A7-vfpv4-d16*.patch

     

    Please find below log FYI.

    rashik@ubuntu:~/RZN1D/ETH/poky$ git am ${RELEASE_DIR}/yocto/rocko/0001-ARM-Add-Cortex-A7-vfpv4-d16*.patch
    *** Please tell me who you are.
    Run
      git config --global user.email "you@example.com"
      git config --global user.name "Your Name"
    to set your account's default identity.
    Omit --global to set the identity only in this repository.
    fatal: unable to auto-detect email address (got 'rashik@ubuntu.(none)')
    rashik@ubuntu:~/RZN1D/ETH$ git config --global user."rashikdp@rabyte.com"
    rashik@ubuntu:~/RZN1D/ETH$ git config --global user."rashik"
    rashik@ubuntu:~/RZN1D/ETH$ git am ${RELEASE_DIR}/yocto/rocko/0001-ARM-Add-Cortex-A7-vfpv4-d16*.patch
    fatal: Not a git repository (or any of the parent directories): .git
     

    looking forward for your support.

     

     

     

  • In reply to Rashik:

    Rashik,

    We have a script-package based on file BUILD.SH. Should make things much easier for you; without Yocto.. Please check it out.

    Go to, and download
    https://github.com/renesas-rz/rzn1_linux-4.19_bsp

    Unzip rzn1_linux_bsp
    $cd ~/rzn1_linux_bsp

    The first time you build in a directory you should do (If you want git; strongly recommended!)
    $git init
    $./build.sh config

    Set root file system defaults for RZ/N.
    $./build.sh buildroot rzn1_defconfig

    To add something you want to root file system (RFS) but you can use default for now.
    $./build.sh buildroot menuconfig

    To add your own files to the linux root file system, put them in.
    $mkdir output/buildroot-2017.02/output/rootfs_overlay
    You must create this directory in order to build, even if empty.

    Build root file system
    $./build.sh buildroot

    $./build.sh kernel rzn1_defconfig
    Exit and save. After this your configuration will be in the local .config file, and you will subsequently only need do the standard
    $./build.sh kernel menuconfig

    If you need to, change your kernel the way you want it (default is fine for the kernel, and you really should start out using the binary from the DVD).
    $./build.sh kernel uImage

    This is all documented. PLEASE SEE THE DOC folder for more details on doing all sorts of things, like loading the RFS to an SD-card and booting from it, etc...

  • In reply to Carl S Stenquist:

    Dear Carl,

    Thank you very much for the answer and link.

    The document is very brief and beautiful. it helped a lot to understand about things are happening.

    Now below things are working.

    -> U-boot.
    -> Linux with ETH port J22 on Expansion board working fine.
    -> CM3 LED blink code (Chase lights code on IAR) working fine.

    Facing problem while trying to run both CM3 binary and A7 on Linux.

    After U-boot CM3 code runs for a while, when Linux entering kernel CM3 code stops working. I mean to say CM3 doesn't work after Linux executes.

    One more exercise to make CM3 on Debug mode in IAR after U-boot then Execute Linux and Run CM3, which is also working fine.

    Any workaround or solution available to run both CA7 and CM3 on Linux and Goal binaries simultaneously.

    Also need some support to test 5 port a Ethernet switch function.

    Waiting for your reply.


    Below log for condition where CM3 works in U-boot and stops when Linux is up.

    rzn1d400-db login:
    ** BOOTLOADER STAGE0 for RZN1 **
    Boot source: QSPI

    STATUS: Valid SPKG header not found (100 QSPI Flash 256-byte blocks read)

    STATUS: Valid SPKG header not found (200 QSPI Flash 256-byte blocks read)

    STATUS: Valid SPKG header not found (300 QSPI Flash 256-byte blocks read)

    STATUS: Valid SPKG header not found (400 QSPI Flash 256-byte blocks read)

    STATUS: Valid SPKG header not found (500 QSPI Flash 256-byte blocks read)

    00 BOOTLOADER STAGE0 Success

    *** Bootloader stage0 END ***

    *** Execute 2nd Stage Bootloader which has been loaded and verified ***


    U-Boot 2017.01-00097-g5b15177ecd (Jul 24 2019 - 10:15:25 +0100)

    Model: RZ/N1D Demo Board
    DRAM: 256 MiB
    MMC: sdhci@40100000: 0
    SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 M iB, mapped at 10000000
    In: serial@40060000
    Out: serial@40060000
    Err: serial@40060000
    Net: dwmac.44000000, dwmac.44002000
    Hit any key to stop autoboot: 0
    =>
    =>
    => setenv bootcmd "sf probe && sf read 0x4000000 d0000 90000 && sf read 0x8ffe00 00 b0000 20000 && sf read 0x80008000 1d0000 f00000 && rzn1_start_cm3 && sleep 4 && bootm 0x80008000 - 0x8ffe0000"
    => saveenv
    Saving Environment to SPI Flash...
    SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 M iB, mapped at 10000000
    Erasing SPI flash...Writing to SPI flash...done
    => boot
    SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 M iB, mapped at 10000000
    device 0 offset 0xd0000, size 0x90000
    SF: 589824 bytes @ 0xd0000 Read: OK
    device 0 offset 0xb0000, size 0x20000
    SF: 131072 bytes @ 0xb0000 Read: OK
    device 0 offset 0x1d0000, size 0xf00000
    SF: 15728640 bytes @ 0x1d0000 Read: OK
    [CC_I|goal_cmInit:220] Calculated config size of 240 in 3 modules modules
    [CC_I|goal_taskCreate:117] creating task: Timer
    [CC_I|goal_tgtTaskCreate:695] task create: Timer
    [CC_I|goal_tgtTaskCreate:699] OS prio: 1, stack: 2048
    [CC_I|goal_lmLogLegacy:1029] [I|goal_taskCreate:160] Created task Timer with pri ority 85/100 and stack 2128 byte sucessfully.
    [CC_I|goal_init:185] GOAL initialized
    [CC_I|goal_lmLogLegacy:1029] [I|appl_setup:85] Chase Lights application started.
    [CC_I|goal_memInitDone:152] fixed memory usage: 24752/262144 bytes bytes
    [CC_I|goal_memInitDone:157] fixed memory usage: (10%)
    ## Booting kernel from Legacy Image at 80008000 ...
    Image Name: Linux-4.9.0
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3655416 Bytes = 3.5 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    ## Flattened Device Tree blob at 8ffe0000
    Booting using the fdt blob at 0x8ffe0000
    Loading Kernel Image ... OK
    Using Device Tree in place at 8ffe0000, end 8ffedf41

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Booting Linux on physical CPU 0x0
    Linux version 4.9.0 (oe-user@oe-host) (gcc version 7.3.0 (GCC) ) #1 SMP Wed Jul 24 12:30:46 UTC 2019
    CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
    CPU: div instructions available: patching division code
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    OF: fdt:Machine model: RZ/N1D Demo Board
    bootconsole [earlycon0] enabled
    Memory policy: Data cache writealloc
    percpu: Embedded 14 pages/cpu @8fd9f000 s24972 r8192 d24180 u57344
    Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
    Kernel command line: console=ttyS0,115200 root=/dev/mtdblock7 init=/init rootwai t ip=192.168.1.50:::::eth0 earlyprintk clk_ignore_unused
    PID hash table entries: 1024 (order: 0, 4096 bytes)
    Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Memory: 248908K/262144K available (6144K kernel code, 175K rwdata, 1548K rodata, 2048K init, 211K bss, 13236K reserved, 0K cma-reserved, 0K highmem)
    Virtual kernel memory layout:
    vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    vmalloc : 0x90800000 - 0xff800000 (1776 MB)
    lowmem : 0x80000000 - 0x90000000 ( 256 MB)
    pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
    modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
    .text : 0x80008000 - 0x80800000 (8160 kB)
    .init : 0x80a00000 - 0x80c00000 (2048 kB)
    .data : 0x80c00000 - 0x80c2bd38 ( 176 kB)
    .bss : 0x80c2d000 - 0x80c61ef8 ( 212 kB)
    Hierarchical RCU implementation.
    Build-time adjustment of leaf fanout to 32.
    NR_IRQS:16 nr_irqs:16 16
    arm_arch_timer: Architected cp15 timer(s) running at 6.25MHz (phys).
    clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x171024e6b, m ax_idle_ns: 440795202301 ns
    sched_clock: 56 bits at 6MHz, resolution 160ns, wraps every 4398046511040ns
    Switching to timer-based delay loop, resolution 160ns
    rzn1-timer: base clock is 25000000 Hz
    clocksource: rzn1_timer_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_n s: 29163075 ns
    Console: colour dummy device 80x30
    Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    CPU: Testing write buffer coherency: ok
    RZ/N1 CPU#2 boot address 200c8148
    Setting up static identity map for 0x80200000 - 0x80200034
    RZ/N1 CPU#1 writing 80201400 to boot address
    Brought up 2 CPUs
    SMP: Total of 2 processors activated (25.00 BogoMIPS).
    CPU: All CPU(s) started in SVC mode.
    devtmpfs: initialized
    VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
    clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911 2604462750000 ns
    pinctrl core: initialized pinctrl subsystem
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    cpuidle: using governor menu
    rzn1-pinctrl 40067000.pinctrl: initialized rzn1 pinctrl driver
    dw_dmac 40104000.dma-controller: DesignWare DMA Controller, 8 channels
    dw_dmac 40104000.dma-controller: RZ/N1 init cfg_dmamux=0xffff
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    GPIO line 488 (eeprom-ctrl0-gpio) hogged as output/high
    GPIO line 489 (eeprom-ctrl1-gpio) hogged as output/low
    GPIO line 490 (eeprom-ctrl2-gpio) hogged as output/low
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@l inux.it>
    PTP clock support registered
    EDAC MC: Ver: 3.0.0
    clocksource: Switched to clocksource arch_sys_counter
    NET: Registered protocol family 2
    TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    UDP hash table entries: 256 (order: 1, 8192 bytes)
    UDP-Lite hash table entries: 256 (order: 1, 8192 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.
    rzn1-pinctrl 40067000.pinctrl: setting RZN1_IRQ_GPIO_0 to GPIO2A[24]
    rzn1-pinctrl 40067000.pinctrl: setting RZN1_IRQ_GPIO_1 to GPIO2A[4]
    rzn1-pinctrl 40067000.pinctrl: setting RZN1_IRQ_GPIO_2 to GPIO1A[28]
    rzn1-pinctrl 40067000.pinctrl: setting RZN1_IRQ_GPIO_3 to GPIO2A[25]
    rzn1-pinctrl 40067000.pinctrl: setting RZN1_IRQ_GPIO_4 to GPIO2A[27]
    rzn1-pinctrl 40067000.pinctrl: setting RZN1_IRQ_GPIO_5 to GPIO2A[26]
    gpio_irq_mux gpioirq: probed
    futex hash table entries: 512 (order: 3, 32768 bytes)
    workingset: timestamp_bits=30 max_order=16 bucket_order=0
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    jffs2: version 2.2. (NAND) (SUMMARY) c 2001-2006 Red Hat, Inc.
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    rzn1: USB PLL already started
    pci-rcar-gen2 40030000.pci: PCI: bus0 revision 11
    pci-rcar-gen2 40030000.pci: PCI host bridge to bus 0000:00
    pci_bus 0000:00: root bus resource [mem 0x40020000-0x400210ff]
    pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
    PCI: bus0: Fast back to back transfers disabled
    pci 0000:00:01.0: BAR 0: assigned [mem 0x40020000-0x40020fff]
    pci 0000:00:02.0: BAR 0: assigned [mem 0x40021000-0x400210ff]
    pci 0000:00:01.0: enabling device (0140 -> 0142)
    pci 0000:00:02.0: enabling device (0140 -> 0142)
    clcd-db9000 53004000.fb: got a 800x480x32 LCD
    Console: switching to colour frame buffer device 100x30
    clcd-db9000 53004000.fb: Core ID reg: 0x0000410F
    Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
    console [ttyS0] disabled
    40060000.serial: ttyS0 at MMIO 0x40060000 (irq = 46, base_baud = 2976190) is a 1 6550A
    console [ttyS0] enabled
    console [ttyS0] enabled
    bootconsole [earlycon0] disabled
    bootconsole [earlycon0] disabled
    40062000.serial: ttyS1 at MMIO 0x40062000 (irq = 47, base_baud = 2976190) is a 1 6550A
    50000000.serial: ttyS2 at MMIO 0x50000000 (irq = 48, base_baud = 2976190) is a 1 6550A
    mbox: Created device mbox.
    mbox: module version 0.3 initialized
    loop: module loaded
    at24 1-0050: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
    rzn1-qspi 40005000.spi: _rzn1_qspi_set_baudrate_div: output clock is 7812500Hz ( div = 32)
    rzn1-qspi 40005000.spi: mx25l25635e (32768 Kbytes)
    rzn1-qspi 40005000.spi: _rzn1_qspi_set_baudrate_div: output clock is 62500000Hz (div = 4)
    8 ofpart partitions found on MTD device 40005000.spi
    Creating 8 MTD partitions on "40005000.spi":
    0x000000000000-0x000000010000 : "qspi0:spl"
    0x000000010000-0x000000020000 : "qspi0:pkgt"
    0x000000020000-0x0000000a0000 : "qspi0:u-boot"
    0x0000000a0000-0x0000000b0000 : "qspi0:env"
    0x0000000b0000-0x0000000d0000 : "qspi0:dtb"
    0x0000000d0000-0x0000001d0000 : "qspi0:cm3"
    0x0000001d0000-0x0000007d0000 : "qspi0:kernel"
    0x0000007d0000-0x000002000000 : "qspi0:data"
    rzn1-qspi 40005000.spi: probed
    dw_spi_mmio 50005000.spi: DMA channel RX dma0chan0
    dw_spi_mmio 50005000.spi: DMA channel TX dma0chan1
    at25 spi32766.0: 128 KByte at25 eeprom, pagesize 4096
    libphy: Fixed MDIO Bus: probed
    CAN device driver interface
    usbcore: registered new interface driver peak_usb
    sja1000 CAN netdevice driver
    rzn1: USB PLL already started
    sja1000_platform 52105000.can: sja1000_platform device registered (reg_base=90bb 3000, irq=58)
    rzn1-miic 44030000.eth-miic: nr phy ports 1
    rzn1-miic 44030000.eth-miic: /bus/eth-miic@44030000 missing mode_control propert y
    rzn1-miic 44030000.eth-miic: /bus/ethernet@44000000/hoard/ethernet-phy@8 phy par ent has not been probed yet
    rzn1-pinctrl 40067000.pinctrl: setting mdio 0 to 0x1
    stmmaceth 44000000.ethernet: no reset control found
    stmmac - user ID: 0x20, Synopsys ID: 0x37
    Ring mode enabled
    DMA HW capability register supported Enhanced/Alternate descriptors
    Enabled extended descriptors
    RX Checksum Offload Engine supported
    COE Type 2
    TX Checksum insertion supported
    Wake-Up On Lan supported
    Enable RX Mitigation via HW Watchdog Timer
    libphy: stmmac: probed
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci-pci: EHCI PCI platform driver
    ehci-pci 0000:00:02.0: EHCI Host Controller
    ehci-pci 0000:00:02.0: new USB bus registered, assigned bus number 1
    ehci-pci 0000:00:02.0: irq 45, io mem 0x40021000
    ehci-pci 0000:00:02.0: USB 2.0 started, EHCI 1.00
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: EHCI Host Controller
    usb usb1: Manufacturer: Linux 4.9.0 ehci_hcd
    usb usb1: SerialNumber: 0000:00:02.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    ehci-platform: EHCI generic platform driver
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    ohci-pci: OHCI PCI platform driver
    ohci-pci 0000:00:01.0: OHCI PCI host controller
    ohci-pci 0000:00:01.0: new USB bus registered, assigned bus number 2
    ohci-pci 0000:00:01.0: irq 45, io mem 0x40020000
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: OHCI PCI host controller
    usb usb2: Manufacturer: Linux 4.9.0 ohci_hcd
    usb usb2: SerialNumber: 0000:00:01.0
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    ohci-platform: OHCI generic platform driver
    usbcore: registered new interface driver usb-storage
    usbf_probe completed (gadget usbf_renesas)
    using random self ethernet address
    using random host ethernet address
    usb0: HOST MAC fe:1a:e0:e1:c5:11
    usb0: MAC d6:a3:73:33:43:c9
    using random self ethernet address
    using random host ethernet address
    g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
    g_ether gadget: g_ether ready
    usbf_renesas 4001e000.usbf: usbf_renesas bind to driver g_ether
    edt_ft5x06 1-0038: touchscreen probe failed
    edt_ft5x06: probe of 1-0038 failed with error -121
    rzn1-rtc 40006000.rtc: rtc core: registered 40006000.rtc as rtc0
    i2c /dev entries driver
    lm75 1-0049: hwmon0: sensor 'lm75'
    rzn1_wdt 40008000.wdt0: Initialized
    EDAC MC0: Giving out device to module cadence_mc_edac controller cadence,ddr-ctr l: DEV 4000d000.memory-controller (INTERRUPT)
    cadence_mc_edac 4000d000.memory-controller: DDR EDAC (Error Detection And Correc tion): ECC Disabled
    sdhci: Secure Digital Host Controller Interface driver
    sdhci: Copyright(c) Pierre Ossman
    sdhci-pltfm: SDHCI platform and OF driver helper
    mmc0: SDHCI controller on 40100000.sdhci [40100000.sdhci] using ADMA
    ledtrig-cpu: registered to indicate activity on CPUs
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    NET: Registered protocol family 17
    can: controller area network core (rev 20120528 abi 9)
    NET: Registered protocol family 29
    can: raw protocol (rev 20120528)
    can: broadcast manager protocol (rev 20161123 t)
    can: netlink gateway (rev 20130117) max_hops=1
    Key type dns_resolver registered
    ThumbEE CPU extension supported.
    Registering SWP/SWPB emulation handler
    rzn1-miic 44030000.eth-miic: nr phy ports 1
    rzn1-miic 44030000.eth-miic: /bus/eth-miic@44030000 missing mode_control propert y
    rzn1-miic 44030000.eth-miic: /bus/eth-miic@44030000/eth-mii0 rgmii-id
    rzn1-rtc 40006000.rtc: setting system clock to 2019-07-24 12:32:27 UTC (15639715 47)
    stmmaceth 44000000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
    stmmaceth 44000000.ethernet eth0: registered PTP clock
    Waiting up to 110 more seconds for network.
    Waiting up to 100 more seconds for network.
    Waiting up to 90 more seconds for network.
    g_ether gadget: high-speed config #2: RNDIS
    random: fast init done
    Waiting up to 80 more seconds for network.
    random: crng init done
    Waiting up to 70 more seconds for network.
    Waiting up to 60 more seconds for network.
    Waiting up to 50 more seconds for network.
    Waiting up to 40 more seconds for network.
    Waiting up to 30 more seconds for network.
    Waiting up to 20 more seconds for network.
    Waiting up to 10 more seconds for network.
    IP-Config: Guessing netmask 255.255.255.0
    IP-Config: Complete:
    device=eth0, hwaddr=74:90:50:40:e7:12, ipaddr=192.168.1.50, mask=255.255.25 5.0, gw=255.255.255.255
    host=192.168.1.50, domain=, nis-domain=(none)
    bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
    clk: Not disabling unused clocks
    VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
    devtmpfs: mounted
    Freeing unused kernel memory: 2048K (80a00000 - 80c00000)
    rorootfs-overlay: Could not mount /dev/mtdblock7, bind mounting...
    INIT: version 2.88 booting
    Starting udev
    udevd[709]: starting version 3.2.2
    udevd[710]: starting eudev-3.2.2
    INIT: Entering runlevel: 5
    Configuring network interfaces... done.
    Starting Dropbear SSH server: Generating key, this may take a while...
    Public key portion is:
    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYIVysyG4OgRxHXRfDIAvaLL/Crc9L1dAjj3Mv759/ pUa+8vlyTpRu8m4X+LT4BQ+HPA2p0WoL+Jh/xD86Yl7M7OzrKWQ9boXlTlKIDncqCwOzz7dl5Q3d4KF8 WCc72QXsy9ULxKKyAlnTXCFHSNDWDlKEq8nn2n78Gq2zdVchgCzPwUNeKg3wk9nN7L5/czQQAR2L2F+B kTDOvGAJXWN5XMN4vnvEwUqqVKDfILy3kjIyhht3nBfKRa3ZgIC+LwbGSUIvK2hHmrPQcfeKbDgojUM2 SJwq1reyABu4FxmoNVZPh9o8JHwo3xFTggzc5axUCus3XAKgyGIBesB0+ndD root@rzn1d400-db
    Fingerprint: md5 9e:9e:27:e4:57:01:43:c1:9d:ef:f1:d5:12:55:0b:7c
    dropbear.
    Starting rpcbind daemon...done.
    starting statd: done
    exportfs: can't open /etc/exports for reading
    NFS daemon support not enabled in kernel
    * starting FTP Server: vsftpd... done.
    No GOAL application found

    Poky (Yocto Project Reference Distro) 2.4.3 rzn1d400-db /dev/ttyS0

    rzn1d400-db login:
    root
    root@rzn1d400-db:~#
  • In reply to Rashik:

    You are still partially using Yocto. I suggest strongly that you get everything working according to the Buildroot solution based script package. (Use the Linux binary from the official DVD download.)

    Then follow RZ-N1D-System-Setup-Tutorial.pdf from the docs folder in detail as to how to setup bootargs and bootcmd, and how to run both cores at the same time without debugger, that is, see 7.2.

    Set setenv as 
    =>setenv bootcmd "sf probe && sf read 0x4000000 d0000 80000 && rzn1_start_cm3 && sleep 4 && sf
    read 0x8ffe0000 b0000 20000 && sf read 0x80008000 1d0000 f00000 && bootm 0x80008000 - 0x8ffe0000"

    That should start the CM3 app before booting linux. You should see 

    [CC_I| ....
    [CC_I| ....
    [CC_I| ....

    when the CM3 app starts and after 4 seconds linux boots.

  • In reply to Rashik:

    Hi Rashik

    CM3's "chase_lights" program turns on / off the LED with the extended I/O controlled by I2C. The reason that CM3 program stops when CA7 Linux is started is because I2C control from CM3 side breaks down when initialization process of Linux I2C driver is executed when Linux starts. As a test, when creating a uImage file with the I2C driver disabled in the Linux Kernel configuration and starting both "chase_lights" on CM3 and Linux on CA7, the CM3 program did not stop.

    Best Regards,
    Hiro