[PATCH] rtems/rtems-kernel-nexus.c: LibBSD init now uses all pass levels.

Nils Hölscher nilhoel1 at gmail.com
Fri Aug 9 14:08:24 UTC 2019


Hi,

Please see attached the files containing my output.

OUT-BEFORE.txt: contains output without patch.
OUT-AFTER.txt: contains output with patch.

Thanks,
Nils

On Fri, 9 Aug 2019 at 15:53, Nils Hölscher <nilhoel1 at gmail.com> wrote:

> I observed all Modules loading in the last fdt pass.
> The reason was, nexus bus loading with BUS_PASS_DEFAULT.
> ---
>  rtemsbsd/rtems/rtems-kernel-nexus.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rtemsbsd/rtems/rtems-kernel-nexus.c
> b/rtemsbsd/rtems/rtems-kernel-nexus.c
> index 15b0f84d..197f23f6 100644
> --- a/rtemsbsd/rtems/rtems-kernel-nexus.c
> +++ b/rtemsbsd/rtems/rtems-kernel-nexus.c
> @@ -394,4 +394,4 @@ static driver_t nexus_driver = {
>
>  static devclass_t nexus_devclass;
>
> -DRIVER_MODULE(nexus, root, nexus_driver, nexus_devclass, 0, 0);
> +EARLY_DRIVER_MODULE_ORDERED(nexus, root, nexus_driver, nexus_devclass, 0,
> 0, SI_ORDER_FIRST, BUS_PASS_BUS);
> --
> 2.22.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190809/5f2afa22/attachment-0002.html>
-------------- next part --------------
Skript gestartet auf 2019-08-09 16:05:49+02:00 [TERM="xterm-256color" TTY="/dev/pts/2" COLUMNS="238" LINES="27"]
]0;nils at nils-Laptop:~/Downloads[nils at nils-Laptop Downloads]$ beagleserial 
[sudo] Passwort f眉r nils: 
picocom v3.1

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

Type [C-a] [C-h] to see available commands
Terminal ready
 
U-Boot SPL 2019.04-00002-gc8b5ad3a1f (Apr 16 2019 - 09:21:31 -0500)
Trying to boot from MMC2
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **


U-Boot 2019.04-00002-gc8b5ad3a1f (Apr 16 2019 - 09:21:31 -0500), Build: jenkins-github_Bootloader-Builder-116

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] ...
board_rev=[00C0] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
51485 bytes read in 6 ms (8.2 MiB/s)
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
560 bytes read in 2 ms (273.4 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd ...

RTEMS u-boot-beaglebone (arm-ti-am335x_evm)
 rtems-boot-image v5.0.not_released

Loading pru.exe.img
1876950 bytes read in 122 ms (14.7 MiB/s)
Loading am335x-boneblack.dtb
51485 bytes read in 6 ms (8.2 MiB/s)
Loading AM335X-PRU-UIO-00A0.dtbo
883 bytes read in 3 ms (287.1 KiB/s)
Applying fdt overlay
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   RTEMS
   Created:      2019-08-09  14:04:44 UTC
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    1876886 Bytes = 1.8 MiB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 8ff8b000, end 8fffffff ... OK

Starting kernel ...


RTEMS Beagleboard: am335x-based
          ARM Debug: 0x4b141000

RTEMS BBB PRU Tester

========== passlink List ==========
Name: simplebus, Pass: 10
Name: ti_scm, Pass: 15
Name: cpswss, Pass: 2147483647
========== link List ==========
DevClass: root, Maxunit: 4, ParentClass: NULL
DevClass: simplebus, Maxunit: 0, ParentClass: NULL
DevClass: cpswss, Maxunit: 0, ParentClass: NULL
DevClass: uhub, Maxunit: 0, ParentClass: NULL
DevClass: usbus, Maxunit: 0, ParentClass: NULL
DevClass: ti_pruss, Maxunit: 0, ParentClass: NULL
DevClass: ti_scm, Maxunit: 0, ParentClass: NULL
DevClass: sdhci_ti, Maxunit: 0, ParentClass: NULL
DevClass: mmc, Maxunit: 0, ParentClass: NULL
DevClass: ofwbus, Maxunit: 0, ParentClass: simplebus
DevClass: iicbus, Maxunit: 0, ParentClass: NULL
DevClass: iic, Maxunit: 0, ParentClass: NULL
DevClass: usbss, Maxunit: 0, ParentClass: simplebus
DevClass: musbotg, Maxunit: 0, ParentClass: NULL
DevClass: iichb, Maxunit: 0, ParentClass: NULL
DevClass: miibus, Maxunit: 0, ParentClass: NULL
DevClass: ukphy, Maxunit: 0, ParentClass: NULL
DevClass: mmcsd, Maxunit: 0, ParentClass: NULL
DevClass: nexus, Maxunit: 4, ParentClass: NULL
DevClass: am335x_prcm, Maxunit: 0, ParentClass: NULL
DevClass: rtwn, Maxunit: 0, ParentClass: NULL
DevClass: saf1761otg, Maxunit: 0, ParentClass: NULL
DevClass: dwcotg, Maxunit: 0, ParentClass: NULL
DevClass: octusb, Maxunit: 0, ParentClass: NULL
DevClass: uss820dci, Maxunit: 0, ParentClass: NULL
DevClass: xhci, Maxunit: 0, ParentClass: NULL
DevClass: ehci, Maxunit: 0, ParentClass: NULL
DevClass: uhci, Maxunit: 0, ParentClass: NULL
DevClass: ohci, Maxunit: 0, ParentClass: NULL
DevClass: rtems_i2c, Maxunit: 0, ParentClass: NULL
DevClass: cpsw, Maxunit: 0, ParentClass: NULL
DevClass: umass, Maxunit: 0, ParentClass: NULL
DevClass: gpio, Maxunit: 0, ParentClass: NULL
DevClass: gpiobus, Maxunit: 0, ParentClass: NULL
DevClass: twsi, Maxunit: 0, ParentClass: NULL
DevClass: iicbb, Maxunit: 0, ParentClass: NULL
========== First Pass ==========
==== CurrentPass: 10, Device nexus, dl->pass: 2147483647 ===
========== Second Pass ==========
==== CurrentPass: 15, Device nexus, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device nexus, dl->pass: 2147483647 ===
nexus0: <RTEMS Nexus device>
ofwbus0: <Open Firmware Device Tree> on nexus0
simplebus0: <Flattened device tree simple bus> on ofwbus0
ti_pruss0: <TI Programmable Realtime Unit Subsystem> mem 0x4a300000-0x4a37ffff irq 20,21,22,23,24,25,26,27 on simplebus0
ti_pruss0: could not enable PRUSS clock
device_attach: ti_pruss0 attach returned 6
simplebus1: <Flattened device tree simple bus> on simplebus0
am335x_prcm0: <AM335x Power and Clock Management> mem 0x200000-0x203fff on simplebus1
simplebus2: <Flattened device tree simple bus> mem 0x210000-0x211fff on simplebus1
ti_scm0: <TI Control Module> mem 0-0x7ff on simplebus2
sdhci_ti0: <TI MMCHS (SDHCI 2.0)> mem 0x48060000-0x48060fff irq 64 on simplebus0
mmc0: <MMC/SD bus> on sdhci_ti0
sdhci_ti1: <TI MMCHS (SDHCI 2.0)> mem 0x481d8000-0x481d8fff irq 28 on simplebus0
mmc1: <MMC/SD bus> on sdhci_ti1
usbss0: <TI AM33xx integrated USB OTG controller> mem 0x47400000-0x47400fff on simplebus0
usbss0: TI AM335X USBSS v0.0.13
musbotg0: <TI AM33xx integrated USB OTG controller> mem 0x47401400-0x474017ff,0x47401000-0x474011ff irq 18 on usbss0
usbus0: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
usbus0 on musbotg0
musbotg1: <TI AM33xx integrated USB OTG controller> mem 0x47401c00-0x47401fff,0x47401800-0x474019ff irq 19 on usbss0
usbus1: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
usbus1 on musbotg1
cpswss0: <3-port Switch Ethernet Subsystem> mem 0x4a100000-0x4a1007ff,0x4a101200-0x4a1012ff irq 40,41,42,43 on simplebus0
cpswss0: CPSW SS Version 1.12 (0)
cpswss0: Initial queue size TX=128 RX=384
cpsw0: <Ethernet Switch Port> on cpswss0
miibus0: <MII bus> on cpsw0
ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0
ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
info: cpsw0: Ethernet address: 74:e1:82:73:a0:89
mmcsd0: 4GB <SDHC       0.2 SN 00338E00 MFG 05/2017 by 158 BE> at mmc0 48.0MHz/4bit/65535-block
sdhci_ti1-slot0: Controller never released inhibit bit(s).
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x0000133a
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000002
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00108000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================
sdhci_ti1-slot0: Controller never released inhibit bit(s).
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x0000133a
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00108000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================
sdhci_ti1-slot0: Controller never released inhibit bit(s).
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x0000133a
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00108000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================
sdhci_ti1-slot0: Controller never released inhibit bit(s).
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x0000133a
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00108000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================
sdhci_ti1-slot0: Controller never released inhibit bit(s).
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x0000133a
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00108000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================
mmc1: CMD6 failed, RESULT: 4
mmc1: Error setting erase group 4
sdhci_ti1-slot0: Got data interrupt 0x00100000, but there is no active data operation.
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x00000700
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00000001
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================

LibBSD initialized

rc.conf: loading: /etc/rc.conf
rc.conf: start: /etc/rc.conf size:136, timeout: 10
rc.conf: running
Setting hostname: bbbpru.
Starting network: lo0 cpsw0 .
rc.conf: /etc/rc.conf: ifconfig: ifconfig lo0 inet 127.0.0.1 netmask 255.0.0.0 up
rc.conf: /etc/rc.conf: ifconfig: ifconfig cpsw0
cpsw0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
        ether 74:e1:82:73:a0:89
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (none)
        status: no carrier
cpsw0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
        ether 74:e1:82:73:a0:89
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (none)
        status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
        inet 127.0.0.1 netmask 0xff000000 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo 
info: lo0: link state changed to UP
info: cpsw0: link state changed to DOWN
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <Mentor Graphics OTG Root HUB> at usbus0
uhub0: <Mentor Graphics OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Mentor Graphics OTG Root HUB> at usbus1
uhub1: <Mentor Graphics OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub0: 1 port with 1 removable, self powered
uhub1: 1 port with 1 removable, self powered
ugen0.2: <Unknown > at usbus0 (disconnected)
Waiting 30s for default route interface: warning: no interfaces have a carrier
ugen0.2: <Unknown > at usbus0 (disconnected)
error: net /etc/rc.conf failed: Connection timed out
Starting a shell ...
[CPU:0] rtems-db: remote running
[CPU:0] rtems-db: tcp remote: listing on port: 1122

RTEMS Shell on /dev/console. Use 'help' to list commands.

SHLL [/] # 
FATAL: read zero bytes from port
term_exitfunc: reset failed for dev UNKNOWN: Input/output error
]0;nils at nils-Laptop:~/Downloads[nils at nils-Laptop Downloads]$ exit

Skript beendet auf 2019-08-09 16:06:33+02:00 [COMMAND_EXIT_CODE="1"]
-------------- next part --------------
Skript gestartet auf 2019-08-09 15:33:21+02:00 [TERM="xterm-256color" TTY="/dev/pts/2" COLUMNS="238" LINES="27"]
]0;nils at nils-Laptop:~/Downloads[nils at nils-Laptop Downloads]$ beagleserial 
[sudo] Passwort f眉r nils: 
picocom v3.1

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

Type [C-a] [C-h] to see available commands
Terminal ready

FATAL: read zero bytes from port
term_exitfunc: reset failed for dev UNKNOWN: Input/output error
]0;nils at nils-Laptop:~/Downloads[nils at nils-Laptop Downloads]$ beagleserial 
picocom v3.1

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

Type [C-a] [C-h] to see available commands
Terminal ready
 
U-Boot SPL 2019.04-00002-gc8b5ad3a1f (Apr 16 2019 - 09:21:31 -0500)
Trying to boot from MMC2
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **


U-Boot 2019.04-00002-gc8b5ad3a1f (Apr 16 2019 - 09:21:31 -0500), Build: jenkins-github_Bootloader-Builder-116

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] ...
board_rev=[00C0] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
51485 bytes read in 7 ms (7 MiB/s)
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
560 bytes read in 3 ms (181.6 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd ...

RTEMS u-boot-beaglebone (arm-ti-am335x_evm)
 rtems-boot-image v5.0.not_released

Loading pru.exe.img
1876948 bytes read in 123 ms (14.6 MiB/s)
Loading am335x-boneblack.dtb
51485 bytes read in 6 ms (8.2 MiB/s)
Loading AM335X-PRU-UIO-00A0.dtbo
883 bytes read in 2 ms (430.7 KiB/s)
Applying fdt overlay
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   RTEMS
   Created:      2019-08-09  13:31:03 UTC
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    1876884 Bytes = 1.8 MiB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 8ff8b000, end 8fffffff ... OK

Starting kernel ...


RTEMS Beagleboard: am335x-based
          ARM Debug: 0x4b141000

RTEMS BBB PRU Tester

========== passlink List ==========
Name: nexus, Pass: 10
Name: simplebus, Pass: 15
Name: uhub, Pass: 2147483647
========== link List ==========
DevClass: root, Maxunit: 4, ParentClass: NULL
DevClass: nexus, Maxunit: 4, ParentClass: NULL
DevClass: usbus, Maxunit: 0, ParentClass: NULL
DevClass: uhub, Maxunit: 0, ParentClass: NULL
DevClass: simplebus, Maxunit: 0, ParentClass: NULL
DevClass: ti_pruss, Maxunit: 0, ParentClass: NULL
DevClass: ti_scm, Maxunit: 0, ParentClass: NULL
DevClass: sdhci_ti, Maxunit: 0, ParentClass: NULL
DevClass: mmc, Maxunit: 0, ParentClass: NULL
DevClass: ofwbus, Maxunit: 0, ParentClass: simplebus
DevClass: iicbus, Maxunit: 0, ParentClass: NULL
DevClass: iic, Maxunit: 0, ParentClass: NULL
DevClass: usbss, Maxunit: 0, ParentClass: simplebus
DevClass: musbotg, Maxunit: 0, ParentClass: NULL
DevClass: iichb, Maxunit: 0, ParentClass: NULL
DevClass: miibus, Maxunit: 0, ParentClass: NULL
DevClass: ukphy, Maxunit: 0, ParentClass: NULL
DevClass: mmcsd, Maxunit: 0, ParentClass: NULL
DevClass: am335x_prcm, Maxunit: 0, ParentClass: NULL
DevClass: rtwn, Maxunit: 0, ParentClass: NULL
DevClass: saf1761otg, Maxunit: 0, ParentClass: NULL
DevClass: dwcotg, Maxunit: 0, ParentClass: NULL
DevClass: octusb, Maxunit: 0, ParentClass: NULL
DevClass: uss820dci, Maxunit: 0, ParentClass: NULL
DevClass: xhci, Maxunit: 0, ParentClass: NULL
DevClass: ehci, Maxunit: 0, ParentClass: NULL
DevClass: uhci, Maxunit: 0, ParentClass: NULL
DevClass: ohci, Maxunit: 0, ParentClass: NULL
DevClass: cpsw, Maxunit: 0, ParentClass: NULL
DevClass: rtems_i2c, Maxunit: 0, ParentClass: NULL
DevClass: umass, Maxunit: 0, ParentClass: NULL
DevClass: cpswss, Maxunit: 0, ParentClass: NULL
DevClass: gpio, Maxunit: 0, ParentClass: NULL
DevClass: gpiobus, Maxunit: 0, ParentClass: NULL
DevClass: twsi, Maxunit: 0, ParentClass: NULL
DevClass: iicbb, Maxunit: 0, ParentClass: NULL
========== First Pass ==========
==== CurrentPass: 10, Device nexus, dl->pass: 10 ===
nexus0: <RTEMS Nexus device>
========== Second Pass ==========
==== CurrentPass: 15, Device nexus, dl->pass: 10 ===
==== CurrentPass: 15, Device ofwbus, dl->pass: 15 ===
ofwbus0: <Open Firmware Device Tree> on nexus0
simplebus0: <Flattened device tree simple bus> on ofwbus0
simplebus1: <Flattened device tree simple bus> on simplebus0
am335x_prcm0: <AM335x Power and Clock Management> mem 0x200000-0x203fff on simplebus1
simplebus2: <Flattened device tree simple bus> mem 0x210000-0x211fff on simplebus1
ti_scm0: <TI Control Module> mem 0-0x7ff on simplebus2
==== CurrentPass: 2147483647, Device nexus, dl->pass: 10 ===
==== CurrentPass: 2147483647, Device ofwbus, dl->pass: 15 ===
==== CurrentPass: 2147483647, Device simplebus, dl->pass: 10 ===
==== CurrentPass: 2147483647, Device ti_pruss, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device ti_scm, dl->pass: 10 ===
==== CurrentPass: 2147483647, Device sdhci_ti, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device simplebus, dl->pass: 15 ===
==== CurrentPass: 2147483647, Device am335x_prcm, dl->pass: 10 ===
==== CurrentPass: 2147483647, Device usbss, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device rtems_i2c, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device cpswss, dl->pass: 2147483647 ===
ti_pruss0: <TI Programmable Realtime Unit Subsystem> mem 0x4a300000-0x4a37ffff irq 20,21,22,23,24,25,26,27 on simplebus0
ti_pruss0: AM33xx PRU-ICSS
==== CurrentPass: 2147483647, Device ti_pruss, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device ti_scm, dl->pass: 10 ===
==== CurrentPass: 2147483647, Device sdhci_ti, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device simplebus, dl->pass: 15 ===
==== CurrentPass: 2147483647, Device am335x_prcm, dl->pass: 10 ===
==== CurrentPass: 2147483647, Device usbss, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device rtems_i2c, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device cpswss, dl->pass: 2147483647 ===
am335x_prcm0: Clocks: System 24.0 MHz, CPU 1000 MHz
==== CurrentPass: 2147483647, Device ti_pruss, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device ti_scm, dl->pass: 10 ===
==== CurrentPass: 2147483647, Device sdhci_ti, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device simplebus, dl->pass: 15 ===
==== CurrentPass: 2147483647, Device am335x_prcm, dl->pass: 10 ===
==== CurrentPass: 2147483647, Device usbss, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device rtems_i2c, dl->pass: 2147483647 ===
==== CurrentPass: 2147483647, Device cpswss, dl->pass: 2147483647 ===
sdhci_ti0: <TI MMCHS (SDHCI 2.0)> mem 0x48060000-0x48060fff irq 64 on simplebus0
mmc0: <MMC/SD bus> on sdhci_ti0
sdhci_ti1: <TI MMCHS (SDHCI 2.0)> mem 0x481d8000-0x481d8fff irq 28 on simplebus0
mmc1: <MMC/SD bus> on sdhci_ti1
usbss0: <TI AM33xx integrated USB OTG controller> mem 0x47400000-0x47400fff on simplebus0
usbss0: TI AM335X USBSS v0.0.13
musbotg0: <TI AM33xx integrated USB OTG controller> mem 0x47401400-0x474017ff,0x47401000-0x474011ff irq 18 on usbss0
usbus0: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
usbus0 on musbotg0
musbotg1: <TI AM33xx integrated USB OTG controller> mem 0x47401c00-0x47401fff,0x47401800-0x474019ff irq 19 on usbss0
usbus1: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
usbus1 on musbotg1
cpswss0: <3-port Switch Ethernet Subsystem> mem 0x4a100000-0x4a1007ff,0x4a101200-0x4a1012ff irq 40,41,42,43 on simplebus0
cpswss0: CPSW SS Version 1.12 (0)
cpswss0: Initial queue size TX=128 RX=384
cpsw0: <Ethernet Switch Port> on cpswss0
miibus0: <MII bus> on cpsw0
ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0
ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
info: cpsw0: Ethernet address: 74:e1:82:73:a0:89
mmcsd0: 4GB <SDHC       0.2 SN 00338E00 MFG 05/2017 by 158 BE> at mmc0 48.0MHz/4bit/65535-block
sdhci_ti1-slot0: Controller never released inhibit bit(s).
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x0000133a
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000002
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00108000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================
sdhci_ti1-slot0: Controller never released inhibit bit(s).
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x0000133a
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00108000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================
sdhci_ti1-slot0: Controller never released inhibit bit(s).
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x0000133a
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00108000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================
sdhci_ti1-slot0: Controller never released inhibit bit(s).
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x0000133a
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00108000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================
sdhci_ti1-slot0: Controller never released inhibit bit(s).
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x0000133a
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00108000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================
mmc1: CMD6 failed, RESULT: 4
mmc1: Error setting erase group 4
sdhci_ti1-slot0: Got data interrupt 0x00100000, but there is no active data operation.
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt:  0x00000001
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x00000700
sdhci_ti1-slot0: Present:  0x01f70006 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x0000000d | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000006 | Int stat: 0x00000001
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x06e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
sdhci_ti1-slot0: ===========================================

LibBSD initialized

rc.conf: loading: /etc/rc.conf
rc.conf: start: /etc/rc.conf size:136, timeout: 10
rc.conf: running
Setting hostname: bbbpru.
Starting network: lo0 cpsw0 .
rc.conf: /etc/rc.conf: ifconfig: ifconfig lo0 inet 127.0.0.1 netmask 255.0.0.0 up
rc.conf: /etc/rc.conf: ifconfig: ifconfig cpsw0
cpsw0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
        ether 74:e1:82:73:a0:89
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (none)
        status: no carrier
cpsw0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
        ether 74:e1:82:73:a0:89
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (none)
        status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
        inet 127.0.0.1 netmask 0xff000000 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo 
info: lo0: link state changed to UP
info: cpsw0: link state changed to DOWN
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <Mentor Graphics OTG Root HUB> at usbus0
uhub0: <Mentor Graphics OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Mentor Graphics OTG Root HUB> at usbus1
uhub1: <Mentor Graphics OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub0: 1 port with 1 removable, self powered
uhub1: 1 port with 1 removable, self powered
ugen0.2: <Unknown > at usbus0 (disconnected)
Waiting 30s for default route interface: warning: no interfaces have a carrier
ugen0.2: <Unknown > at usbus0 (disconnected)
error: net /etc/rc.conf failed: Connection timed out
Starting a shell ...
[CPU:0] rtems-db: remote running
[CPU:0] rtems-db: tcp remote: listing on port: 1122

RTEMS Shell on /dev/console. Use 'help' to list commands.

SHLL [/] # ls /dev
bpf     bpf0    console pruss0  ttyS0   ugen0.1 ugen1.1 usb     usbctl

SHLL [/] # ugen0.2: <Unknown > at usbus0 (disconnected)
ugen0.2: <Unknown > at usbus0 (disconnected)
 
FATAL: read zero bytes from port
term_exitfunc: reset failed for dev UNKNOWN: Input/output error
]0;nils at nils-Laptop:~/Downloads[nils at nils-Laptop Downloads]$ exit

Skript beendet auf 2019-08-09 15:34:33+02:00 [COMMAND_EXIT_CODE="1"]


More information about the devel mailing list