This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRA821U: Cannot set static IP on QNX when booting from xSPI

Part Number: DRA821U

Hi,

I am trying to follow the 'How to Linux Fast Boot on DRA821U' application note and hoping to substitute TinyFS with QNX.

I now have QNX booting, but when I try to set the static IP of the system, QNX seems to hang. The same QNX image is fine when booting from the SD card.

The commands I am using are:

Fullscreen
1
2
3
4
5
echo "Setting up IP address."
io-pkt-v6-hc
mount -T io-pkt /sd/tilib/devnp-cpsw2g.so
if_up -p am0
ifconfig am0 192.168.1.10 netmask 255.255.0.0
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Does booting from xSPI cause the network device to not come online in the same manner?

Cheers for any help with this one!

Michael. 

  • Hello,

    Does booting from xSPI cause the network device to not come online in the same manner?

    Ideally, the boot mode must not change the behavior of the ethernet driver.  Can you tell us what if you are using SPL+Uboot or the SBL to boot up the QNX_IFS?

    Also, Can you share the full boot log? Include logs after running "pidin ar" and "slog2info".

    Thanks.

  • Hi Praveen,

    I'm using SPL+Uboot, based on this thread. Ideally, we want to boot to QNX using some onboard storage, ideally quickly. I'm not experience with how to boot without UBoot.

    As for the boot log, I have attached it below. I've had to adjust the boot sequence to run the commands requested as, typically, I would have setup the IP Address which would make the terminal unusable. 

    Boot log:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    U-Boot SPL 2021.01-g62a9e51344 (Mar 03 2023 - 22:36:02 +0000)
    Model: Texas Instruments K3 J7200 SoC
    Board: J7200X-PM2-SOM rev E8
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
    Trying to boot from SPI
    Starting ATF on ARM64 core...
    NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
    NOTICE: BL31: Built : 22:35:07, Mar 3 2023
    I/TC:
    I/TC: OP-TEE version: 3.20.0 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Fri Mar 3 22:35:14 UTC 2023 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
    I/TC: HUK Initialized
    I/TC: Activated SA2UL device
    I/TC: Fixing SA2UL firewall owner for GP device
    I/TC: Enabled firewalls for SA2UL TRNG device
    I/TC: SA2UL TRNG initialized
    I/TC: SA2UL Drivers initialized
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Slog2Info:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    Jan 01 00:00:00.020 random.5 low* 0 qcrypto: loading configuration file '/etc/qcrypto.conf' [qcrypto_common.c(190)]
    Jan 01 00:00:00.021 random.5..0 slog* 700 Random is using the Fortuna PRNG
    Jan 01 00:00:00.025 random.5 low 0 qcrypto: 'openssl' plugin loaded [qcrypto_plugins.c(354)]
    Jan 01 00:00:00.025 random.5..0 slog 700 Selecting timer as an entropy source
    Jan 01 00:00:00.026 random.5..0 slog 700 Registered path names
    Jan 01 00:00:00.026 random.5..0 slog 700 random: starting resmgr
    Jan 01 00:00:00.026 random.5..0 slog 700 random: Daemonizing the process
    Jan 01 00:00:00.040 devb_sdmmc_am65x.9 slog* 1800 devb-sdmmc-am65x 1.00A (May 11 2023 11:35:49)
    Jan 01 00:00:00.040 devb_sdmmc_am65x.9 slog 0 libcam.so (Sep 3 2021 11:57:38) bver 7010004
    Jan 01 00:00:00.041 devb_sdmmc_am65x.9 slog 1800 sdio_cd: insertion path 0, cd state 0x1
    Jan 01 00:00:00.042 devb_sdmmc_am65x.10 slog* 1800 devb-sdmmc-am65x 1.00A (May 11 2023 11:35:49)
    Jan 01 00:00:00.043 devb_sdmmc_am65x.10 slog 0 libcam.so (Sep 3 2021 11:57:38) bver 7010004
    Jan 01 00:00:00.044 devb_sdmmc_am65x.10 slog 1800 sdio_cd: insertion path 0, cd state 0x1
    Jan 01 00:00:00.054 qconn.13 slog* 0 Couldn't initialize listen service: tcp (Address family not supported by protocol family)
    Jan 01 00:00:00.133 devb_sdmmc_am65x.9 slog 1800 MMC CID:
    Jan 01 00:00:00.133 devb_sdmmc_am65x.9 slog 1800 MID 0x13, OID 0x4e, PNM S0J56X
    Jan 01 00:00:00.133 devb_sdmmc_am65x.9 slog 1800 PRV 0x10, PSN 0x3469d13d, MDT 7-2022
    Jan 01 00:00:00.133 devb_sdmmc_am65x.9 slog 1800 MMC CSD:
    Jan 01 00:00:00.133 devb_sdmmc_am65x.9 slog 1800 CSD_STRUCTURE 3, SPEC_VERS 4, CCC 0x8f5
    Jan 01 00:00:00.133 devb_sdmmc_am65x.9 slog 1800 TAAC 127, NSAC 1, TRAN_SPEED 50
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Pidin:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    # pidin ar
    pid Arguments
    1 procnto-smp-instr -v
    2 slogger2
    3 pipe
    4 dumper -d /tmp
    5 random -t
    6 devc-seromap -e -F 0x02800000,224
    7 i2c-omap35xx -p0x2000000 -i232 -d
    8 i2c-omap35xx -p0x2010000 -i233 -d
    9 devb-sdmmc-am65x blk cache=1m sdio addr=0x4f80000,irq=35,timing=~hs400,emmc,bs=sscfg=0x8000 disk name=emmc
    10 devb-sdmmc-am65x blk cache=1m sdio addr=0x04fb0000,irq=36,bs=sscfg=0x8000:ldo=0x600000^55:pwrdev=/dev/i2c0 cam pnp disk name=sd
    11 devf-j7-ospi rclk=200000000,clk=25000000,rdelay=4
    12 devc-pty
    13 qconn
    15 inetd
    4110 ksh /proc/boot/.console_ti.sh
    32784 tisci-mgr
    45073 shmemallocator
    49170 tiipc-mgr
    53267 tiudma-mgr
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    From here, the user.sh would typically setup the IP address with the commands listed above, but it will cause the OS to hang. I have tried the commands manually with no difference. 

  • Hi  Michael,

    Thanks. From the logs, it seems that the board booted fine and there is no issue seen. 

    We suspect some issue in the commands you added to user.sh file. Suggest removing the lines you added to user.sh and try calling it from the debug prompt and share the logs. Type each one of the below command one by one and let us know what you experience:

    slog2info -w &
    io-pkt-v6-hc -d cpsw2g
    ifconfig am0 192.168.1.10
    ifconfig -v

    Thanks.

  • Hi Praveen,

    I ran those commands, it still seems to hang when setting an IP address.

    The logs are below:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    # slog2info -w &
    [1] 61461
    Jan 01 00:00:00.012 console.2 0 -----ONLINE-----
    Jan 01 00:00:00.019 random.5 0 -----ONLINE-----
    Jan 01 00:00:00.020 random.5 low* 0 qcrypto: loading configuration file '/etc/qcrypto.conf' [qcrypto_common.c(190)]
    Jan 01 00:00:00.020 random.5..0 0 -----ONLINE-----
    Jan 01 00:00:00.020 random.5..0 slog* 700 Random is using the Fortuna PRNG
    Jan 01 00:00:00.025 random.5 low 0 qcrypto: 'openssl' plugin loaded [qcrypto_plugins.c(354)]
    Jan 01 00:00:00.025 random.5..0 slog 700 Selecting timer as an entropy source
    Jan 01 00:00:00.025 random.5..0 slog 700 Registered path names
    Jan 01 00:00:00.025 random.5..0 slog 700 random: starting resmgr
    Jan 01 00:00:00.025 random.5..0 slog 700 random: Daemonizing the process
    Jan 01 00:00:00.040 devb_sdmmc_am65x.9 0 -----ONLINE-----
    Jan 01 00:00:00.040 devb_sdmmc_am65x.9 slog* 1800 devb-sdmmc-am65x 1.00A (May 11 2023 11:35:49)
    Jan 01 00:00:00.040 devb_sdmmc_am65x.9 slog 0 libcam.so (Sep 3 2021 11:57:38) bver 7010004
    Jan 01 00:00:00.041 devb_sdmmc_am65x.9 slog 1800 sdio_cd: insertion path 0, cd state 0x1
    Jan 01 00:00:00.042 devb_sdmmc_am65x.10 0 -----ONLINE-----
    Jan 01 00:00:00.042 devb_sdmmc_am65x.10 slog* 1800 devb-sdmmc-am65x 1.00A (May 11 2023 11:35:49)
    Jan 01 00:00:00.043 devb_sdmmc_am65x.10 slog 0 libcam.so (Sep 3 2021 11:57:38) bver 7010004
    Jan 01 00:00:00.044 devb_sdmmc_am65x.10 slog 1800 sdio_cd: insertion path 0, cd state 0x1
    Jan 01 00:00:00.054 qconn.13 0 -----ONLINE-----
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Thanks for the help,

    Michael. 

  • Thanks Michael,

    Looks like there is a failure in the low level driver which is causing the issue you are seeing, See the log message:

    Jan 01 00:01:08.086 io_pkt_v6_hc.65558 slog 0
    Assertion @ Line: 151 in src/core/enet_osal.c: cfg->delay != NULL : failed !!!

    We will try to investigate what is triggering this and let you know if there is any code update required or not.

    Thanks.

  • Hello Michael,

    We do not see this on the latest SDK release.  Can you retest on the new release and let us know.

    Thanks.