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.

Program on Beagle Bone Black with Uniflash

Other Parts Discussed in Thread: UNIFLASH, TPS65217

Hi, Everyone

I have a qestion.
I want to flash program with Uniflash and USB on Beagle Bone Black.
and I use PROCESSOR-SDK-LINUX-AM335X  02_00_00_00
I saw guidline:

processors.wiki.ti.com/.../Sitara_Linux_Program_the_eMMC_on_Beaglebone_Black
processors.wiki.ti.com/.../Sitara_Uniflash_Quick_Start_Guide

It is success U-boot and Kernel load and kernel start.
but It is always stop 27% and kernel is stop.

and I show you log.

============================================
U-Boot SPL 2015.07-00114-gf5078ef (Dec 20 2015 - 19:25:07)
Using default environment

usb_ether
Error: usb_ether address not set.

using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC c8:a0:30:c5:69:2d
HOST MAC de:ad:be:af:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
Using usb_ether device
TFTP from server 192.168.2.1; our IP address is 192.168.2.2
Filename 'u-boot-restore.img'.
Load address: 0x807fffc0
Loading: ##########################
         546.9 KiB/s
done
Bytes transferred = 367292 (59abc hex)


U-Boot 2015.07-00114-gf5078ef (Dec 20 2015 - 19:25:07 -0800)

       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading uboot.env
Net:   cpsw, usb_ether
Hit any key to stop autoboot:  0
U-Boot#
U-Boot#
U-Boot# setenv ethact usb_ether
U-Boot# setenv serverip 192.168.2.1
U-Boot# setenv ipaddr 192.168.2.3
U-Boot# tftp zImage
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC c8:a0:30:c5:69:2f
HOST MAC de:ad:be:af:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
Using usb_ether device
TFTP from server 192.168.2.1; our IP address is 192.168.2.3
Filename 'zImage'.
Load address: 0x82000000
Loading: T #################################################################
         #################################################################
         #################################################################
         ##########################
         390.6 KiB/s
done
Bytes transferred = 3230112 (3149a0 hex)
U-Boot# run findfdt
U-Boot# tftp ${fdtaddr} ${fdtfile}
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC c8:a0:30:c5:69:2f
HOST MAC de:ad:be:af:00:00
RNDIS ready
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
Using usb_ether device
TFTP from server 192.168.2.1; our IP address is 192.168.2.3
Filename 'am335x-boneblack.dtb'.
Load address: 0x88000000
Loading: T ###
         5.9 KiB/s
done
Bytes transferred = 32990 (80de hex)
U-Boot# bootz ${loadaddr} - ${fdtaddr}
Kernel image @ 0x82000000 [ 0x000000 - 0x3149a0 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8fff4000, end 8ffff0dd ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.6-g52c4aa7 (am335xprocessersdk02000000@ubuntu)                      (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05) ) #2 PREEMPT S                     un Dec 20 20:34:36 PST 2015
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio                     n cache
[    0.000000] Machine model: TI AM335x BeagleBone Black
[    0.000000] cma: Reserved 24 MiB at 0x9e800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.0 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                     es: 129920
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroot                     =10.5.5.127:/home/am335_ezsdk_08000000/ti-sdk-am335x-evm-08.00.00.00/targetNFS,n                     olock rw ip=dhcp
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 485336K/524288K available (6247K kernel code, 254K rwdata                     , 2096K rodata, 260K init, 229K bss, 14376K reserved, 24576K cma-reserved, 0K hi                     ghmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc082e05c   (8345 kB)
[    0.000000]       .init : 0xc082f000 - 0xc0870000   ( 260 kB)
[    0.000000]       .data : 0xc0870000 - 0xc08afb28   ( 255 kB)
[    0.000000]        .bss : 0xc08b2000 - 0xc08eb7f8   ( 230 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrup                     ts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478                     484971ns
[    0.000031] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_                     idle_ns: 79635851949 ns
[    0.000040] OMAP clocksource: timer1 at 24000000 Hz
[    0.000203] Console: colour dummy device 80x30
[    0.000225] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000230] This ensures that you still see kernel messages. Please
[    0.000235] update your kernel commandline.
[    0.000251] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.089328] pid_max: default: 32768 minimum: 301
[    0.089421] Security Framework initialized
[    0.089470] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089479] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090090] Initializing cgroup subsys blkio
[    0.090113] Initializing cgroup subsys memory
[    0.090150] Initializing cgroup subsys devices
[    0.090163] Initializing cgroup subsys freezer
[    0.090175] Initializing cgroup subsys perf_event
[    0.090200] CPU: Testing write buffer coherency: ok
[    0.090557] Setting up static identity map for 0x80008200 - 0x80008270
[    0.091910] devtmpfs: initialized
[    0.099973] VFP support v0.3: implementor 41 architecture 3 part 30 variant c                      rev 3
[    0.107342] omap_hwmod: tptc0 using broken dt data from edma
[    0.107438] omap_hwmod: tptc1 using broken dt data from edma
[    0.107520] omap_hwmod: tptc2 using broken dt data from edma
[    0.111784] omap_hwmod: debugss: _wait_target_disable failed
[    0.166111] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max                     _idle_ns: 19112604462750000 ns
[    0.168051] pinctrl core: initialized pinctrl subsystem
[    0.169197] NET: Registered protocol family 16
[    0.171205] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.199318] cpuidle: using governor ladder
[    0.229306] cpuidle: using governor menu
[    0.232318] OMAP GPIO hardware version 0.1
[    0.240134] No ATAGs?
[    0.240165] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.276209] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.278873] vgaarb: loaded
[    0.279415] SCSI subsystem initialized
[    0.279888] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wk                     up@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    0.280023] pps_core: LinuxPPS API ver. 1 registered
[    0.280030] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome                     tti <giometti@linux.it>
[    0.280059] PTP clock support registered
[    0.280761] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.280952] Advanced Linux Sound Architecture Driver Initialized.
[    0.281663] Switched to clocksource timer1
[    0.290449] NET: Registered protocol family 2
[    0.291184] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.291228] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.291266] TCP: Hash tables configured (established 4096 bind 4096)
[    0.291342] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.291358] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.291500] NET: Registered protocol family 1
[    0.291915] RPC: Registered named UNIX socket transport module.
[    0.291929] RPC: Registered udp transport module.
[    0.291935] RPC: Registered tcp transport module.
[    0.291940] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.292706] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
[    0.292745] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counter                     s available
[    0.294373] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.294450] audit: initializing netlink subsys (disabled)
[    0.294512] audit: type=2000 audit(0.280:1): initialized
[    0.300747] VFS: Disk quotas dquot_6.6.0
[    0.300930] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.302937] NFS: Registering the id_resolver key type
[    0.303009] Key type id_resolver registered
[    0.303015] Key type id_legacy registered
[    0.303077] jffs2: version 2.2. (NAND) (SUMMARY)  c 2001-2006 Red Hat, Inc.
[    0.305281] NET: Registered protocol family 38
[    0.305346] io scheduler noop registered
[    0.305358] io scheduler deadline registered
[    0.305408] io scheduler cfq registered (default)
[    0.306321] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.307970] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    0.308901] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    0.312062] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 155, base_baud =                      3000000) is a 8250
[    0.954999] console [ttyS0] enabled
[    0.959372] [drm] Initialized drm 1.1.0 20060810
[    0.964380] slave hdmi: could not get i2c
[    0.977367] brd: module loaded
[    0.984825] loop: module loaded
[    0.988790] mtdoops: mtd device (mtddev=name/number) must be supplied
[    0.997107] mousedev: PS/2 mouse device common for all mice
[    1.002815] i2c /dev entries driver
[    1.007188] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.089158] mmc0: host does not support reading read-only switch, assuming wr                     ite-enable
[    1.097524] ledtrig-cpu: registered to indicate activity on CPUs
[    1.103985] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.109860] mmc0: new high speed SDHC card at address 1234
[    1.116335] mmcblk0: mmc0:1234 SA04G 3.63 GiB
[    1.121988] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.129631]  remoteproc0: wkup_m3 is available
[    1.134296]  mmcblk0: p1 p2
[    1.137945]  remoteproc0: Note: remoteproc is still under development and con                     sidered experimental.
[    1.147116]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backwar                     d compatibility isn't yet guaranteed.
[    1.158811]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf fai                     led with error -2
[    1.172233] oprofile: using arm/armv7
[    1.176230] Initializing XFRM netlink socket
[    1.180553] NET: Registered protocol family 17
[    1.185132]  remoteproc0: Falling back to user helper
[    1.190428] NET: Registered protocol family 15
[    1.195138] Key type dns_resolver registered
[    1.199643] omap_voltage_late_init: Voltage driver support not added
[    1.207571] ThumbEE CPU extension supported.
[    1.213930] Registering SWP/SWPB emulation handler
[    1.245044] mmc1: MAN_BKOPS_EN bit is not set
[    1.251554] mmc1: new high speed MMC card at address 0001
[    1.257956] mmcblk1: mmc1:0001 MMC02G 1.78 GiB
[    1.263121] mmcblk1boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
[    1.269098] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.274507] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.280272] mmcblk1boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
[    1.289997]  mmcblk1: p1 p2
[    1.403983] tda998x 0-0070: found TDA19988
[    1.409049] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.415726] [drm] No driver support for vblank timestamp query.
[    1.422025] tilcdc 4830e000.lcdc: No connectors reported conne
[   11.631678] Waiting up to 110 more seconds for network.
[   21.631675] Waiting up to 100 more seconds for network.[   31.631675] Waiting up to 90 more seconds for network.
[   41.631674] Waiting up to 80 more seconds for network.
[   51.631675] Waiting up to 70 more seconds for network.
[   61.181804]  remoteproc0: failed to load am335x-pm-firmware.elf
[   61.187769]  remoteproc0: powering up wkup_m3
[   61.192280]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
[   61.200929]  remoteproc0: Falling back to user helper
[   61.631692] Waiting up to 60 more seconds for network.
[   71.631674] Waiting up to 50 more seconds for network.
[   81.631673] Waiting up to 40 more seconds for network.
[   91.631673] Waiting up to 30 more seconds for network.
[  101.631673] Waiting up to 20 more seconds for network.
[  111.631682] Waiting up to 10 more seconds for network.
[  121.201754]  remoteproc0: request_firmware failed: -11
[  121.206914]  remoteproc0: rproc_boot failed
[  121.631674] Waiting up to 0 more seconds for network.
[  121.651687] Sending DHCP requests ..
[  124.721678] random: nonblocking pool is initialized
[  129.291665] ...
============================================

I do not use Ethernet.
Can you tell me how to set for skip ethernet waiting ?

Best Regards
Hiroyasu

  • Hi,

    I will forward this to the software team but reply will be delayed until after the holidays.
  • Hi, Biser

    O.K. I wait for your reply after holidays.

    Best Regards
    Hiroyasu
  • Hi,

    This "waiting up to X more seconds for network" message comes from net/ipv4/ipconfig.c source:
    while (time_before(jiffies, start +
                      msecs_to_jiffies(CONF_CARRIER_TIMEOUT))) {
            int wait, elapsed;

    for_each_netdev(&init_net, dev)
                 if (ic_is_init_dev(dev) && netif_carrier_ok(dev))
        goto have_carrier;

        msleep(1);

        if (time_before(jiffies, next_msg))
                  continue;

        elapsed = jiffies_to_msecs(jiffies - start);
        wait = (CONF_CARRIER_TIMEOUT - elapsed + 500)/1000;
        pr_info("Waiting up to %d more seconds for network.\n", wait);
        next_msg = jiffies + msecs_to_jiffies(CONF_CARRIER_TIMEOUT/12);
    }

    Do you set the ip address statically (like ip=xxx.xxx.xxx.xxx) somewhere in your sources (uEnv.txt, u-boot env parameters, etc...)?
    Kernel is configured to wait up to 120 seconds for a network device. This is done with:
    #define CONF_CARRIER_TIMEOUT 120000

    You can lower this value in order to get rid of the 120 seconds timeout.

    Best Regards,
    Yordan

  • Hi, Yordan

    Thank you for your reply.
    These line are repeated.

    ============================



    [ 914.011663] Waiting up to 20 more seconds for network.
    [ 924.011663] Waiting up to 10 more seconds for network.
    [ 934.011663] Waiting up to 0 more seconds for network.
    [ 934.031669] Sending DHCP requests ...... timed out!
    [ 1012.503775] IP-Config: Retrying forever (NFS root)...
    [ 1012.508871] net eth0: initializing cpsw version 1.12 (0)
    [ 1012.515843] libphy: PHY 4a101000.mdio:00 not found
    [ 1012.520655] net eth0: phy 4a101000.mdio:00 not found on slave 0
    [ 1012.526634] libphy: PHY 4a101000.mdio:01 not found
    [ 1012.531444] net eth0: phy 4a101000.mdio:01 not found on slave 1
    [ 1022.531665] Waiting up to 110 more seconds for network.
    [ 1032.531663] Waiting up to 100 more seconds for network.
    [ 1042.531663] Waiting up to 90 more seconds for network.



    ============================

    I understand your answer can lower value.
    I want to skip.
    Do you know how to skip ?

    Best Regards
    Hiroyasu