HI Alex.
I already tested with a script in init.d folder. (rj45.sh)
I created a symbolic link in rc2.d (or rcS.d) folder with a high priority to be executed last. ( S99rj45.sh -> âŠ/init.d/rj45.sh)
but whether in rc2.d or rcS.d, it does not work.
I think rj45.sh is not executed.
If I look at the startup log, there is no reference to eth0 (dmesg)
if I run the file rj45.sh by hand, after booting, I can see in the log dmesg:
*[ 180.338980] gpio_sync_ri: RI owner is Modem
[ 180.339004] gpio_map_name_to_num: find GPIO 38
[ 180.339015] export_store: Export GPIO: 38
[ 180.339039] gpio_sync_ri: RI owner is Modem
[ 180.339052] gpiod_export: sierraâfind GPIO,chipdev = -826439152,chipngpio = 80,chipbase = 0
[ 180.730153] usb 1-1.2: new high-speed USB device number 4 using msm_hsic_host
[ 180.841890] usb 1-1.2: New USB device found, idVendor=0424, idProduct=9e00
[ 180.841912] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 180.845269] smsc95xx v1.0.4
[ 180.932197] smsc95xx 1-1.2:1.0 eth0: register âsmsc95xxâ at usb-7c00000.hsic_host-1.2, smsc95xx USB 2.0 Ethernet, cce26e48
[ 181.060946] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 181.065925] USB QCMAP NL IOCTL Snd GETNEIGH Succ
[ 182.857226] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 182.859925] smsc95xx 1-1.2:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
[ 182.885432] QTI:LINK_UP Processed
[ 182.887442] QTI:ETH mode
[ 182.896809] QTI:LINK_UP message posted
[ 207.140572] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.*
So, If I use the startlegato.sh file I can see in dmesg log:
- From [16.8âŠ] to [23.7âŠ] the configuration of eth0 ==>
At that moment, I see the RJ45 led ON
- From [26.63] you can see âKernel is trying to unregister eth0â ??? ==> I think at that moment, the LED are OFF
At the end of the boot, eth0 donât exist (ifconfig).
If I use the cmd âecho 2 > /sys/class/gpio/exportâ I have the error : sh: write error: Device or resource busy
If I use the cmd âifup eth0â I have the error : ifup: interface eth0 already configured
best regards
Laurent
rj45.sh (838 Bytes)
cfg_in_startlegato.txt (69.9 KB)