Part Number: PROCESSOR-SDK-DRA8X-TDA4X
With QNX drivers, one must be able to kill them and restart them.
After slaying the cpsw2g driver, I cannot restart it.
Here is what I do:
During boot up (this is part of the build file)
tisci-mgr
waitfor /dev/tisci 4
shmemallocator
waitfor /dev/shmemallocator 4
tiipc-mgr
waitfor /dev/tiipc 4
tiudma-mgr
waitfor /dev/tiudma 4
...
display_msg "Starting Networking ..."
io-pkt-v6-hc -d cpsw2g -p tcpip pkt_typed_mem=below4G
if_up -p am0
ifconfig am0 up
dhclient -m -lf /dev/shmem/dhclient.leases -pf /dev/shmem/dhclient.pid -nw am0
There is one issue with above: driver tiipc-mgr fails
Mailbox_plugInterrupt: interrupt Number 489, arg 0xCFB23EA0
Mailbox_plugInterrupt: interrupt Number 490, arg 0xCFB24040
Mailbox_plugInterrupt: interrupt Number 491, arg 0xCFB241E0
Mailbox_plugInterrupt: interrupt Number 492, arg 0xCFB24380
Mailbox_plugInterrupt: interrupt Number 493, arg 0xCFB24520
Process 7 (tiipc-mgr) terminated SIGSEGV code=1 fltno=11 ip=00000019cfada298(/proc/boot/tiipc-mgr@ck_gettime+0x0000000000003078) mapaddr=000000000000f298. ref=0000005548f2dff0
Unable to access "/dev/tiipc" (2)
Maybe tiipc-mgr isn't really needed, networking works fine anyway. (I have used telnet on it)
The problem is here:
If I slay the driver, I cannot make it work anymore. Here is the log:
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33136
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
am0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 50:51:a9:fc:ed:80
media: Ethernet none (1000baseT full-duplex)
status: active
inet 10.122.80.50 netmask 0xfffffe00 broadcast 10.122.81.255
inet6 fe80::5251:a9ff:fefc:ed80%am0 prefixlen 64 scopeid 0x11
# slay io-pkt-v6-hc
# ifconfig
ifconfig: getifaddrs: Address family not supported by protocol family
# io-pkt-v6-hc -d cpsw2g -p tcpip pkt_typed_mem=below4G
# if_up -p am0
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33136
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
am0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: 50:51:a9:fc:ed:80
media: Ethernet none (none full-duplex)
status: no carrier
# ifconfig am0 inet 10.122.80.50
ti_sci_msg_xfer: ACK error
At this point, the console is frozen and I have to reboot