T113i 官方的SDK中rootfs修改为systemd,启动失败。
修改init为systemd后,一些服务启动失败。经分析是没有创建响应的用户组。如systemd-networkd等。
正常情况下buildroot201902修改为systemd后,这些用户组都是可以自动创建的。
从buildroot的官网上download的,修改systemd后,这些用户组都可以正常创建。
官方的SDK是在哪里做了修改吗?
yjklwj 发布的帖子
-
T113i 官方的SDK中rootfs修改为systemd后,启动失败。
-
T113i reboot 软重启失败
T113i reboot 软重启失败。
在硬件设计上,添加了外置看门狗706,连接到CPU的RESET。
硬件看门狗暂时还处于没有工作的状态。不会发复位信号到CPU的RESET。
此时reboot ,系统在发送reboot后,执行一些操作后,就卡主了,像是没有启动boot0,以下是打印信息。
但是如果我们把706看门狗硬件拿掉后,reboot正常。
同样的设计方案,在其它CPU 平台上都没有问题,T113的平台还需要修改哪里吗?
Requesting system reboot
[ 33.868664] invalid reason or reasonbase NULL
[ 33.873555] rtc set bootreason hot reboot fail
[ 33.878561] reboot_callback(): empty arg
[ 37.062853] [ohci1-controller]: ohci shutdown start
[ 37.068379] [ohci1-controller]: ohci shutdown end
[ 37.073670] [ehci1-controller]: ehci shutdown start
[ 37.079967] [ehci1-controller]: ehci shutdown end
[ 37.085255] [ohci0-controller]: ohci shutdown start
[ 37.090756] [ohci0-controller]: ohci shutdown end
[ 37.096042] [ehci0-controller]: ehci shutdown start
[ 37.102134] [ehci0-controller]: ehci shutdown end
[ 37.107433] [VIN_WARN]video1 device have been closed!
[ 37.113113] [VIN_WARN]video0 device have been closed!
[ 37.118847] sunxi:i2c_sunxi@2502400.twi[INFO]: shutdown finish
[ 37.137736] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 37.151042] reboot: Restarting system -
T113i usb0 host模式,连接USB 4G模块,发AT指令信息,没有反应
T113i USB0 host 模式,连接有方 的4G模块,发AT指令信息,没有反应。lsusb 显示有2949:7383。
1.在option.c里面已经添加了usb id,在/dev/下已经看到了:ttyUSB1,ttyUSB2,ttyUS,3,ttyUSB4,
分别往ttyUSB1-4 发ATI指令,查询版本,均没有反应。
4G模块是没有问题的,单独供电,而且通过fpc连接,把4G模块连接到别的平台,可以正常工作。
2.设备树:
&usbc0 {
device_type = "usbc0";
usb_port_type = <0x1>;
usb_detect_type = <0x1>;
usb_detect_mode = <0x0>;
usb_id_gpio = <&pio PB 11 GPIO_ACTIVE_HIGH>;
enable-active-high;
usb_det_vbus_gpio = <&pio PB 12 GPIO_ACTIVE_HIGH>;
usb_wakeup_suspend = <0>;
usb_serial_unique = <0>;
usb_serial_number = "20080411";
rndis_wceis = <1>;
status = "okay";
};
哪里还有问题吗? -
T113i 打开RTL8821CU wifi 失败,有遇到过的么
T113i,usb 连接rtl8821cu,驱动添加完成后,ifconfig wlan0 up,内核直接报错,一下新打印信息,有遇到过的么。rtl8821cu的驱动应该是没有问题的,我们在别的平台上是可以用的。
kernel/linux-5.4/drivers/net/wireless/realtek/rtl8821cu/hal/rtl8821c/rtl8821c_halinit.c:106 rtl8821c_power_on+0xa4/0xf4
[ 95.855461] Modules linked in: sunxi_ce
[ 95.859770] CPU: 0 PID: 1585 Comm: ifconfig Not tainted 5.4.61 #19
[ 95.866696] Hardware name: Generic DT based system
[ 95.872087] [<c010e390>] (unwind_backtrace) from [<c010a934>] (show_stack+0x10/0x14)
[ 95.880776] [<c010a934>] (show_stack) from [<c08efcd8>] (dump_stack+0x7c/0x98)
[ 95.888879] [<c08efcd8>] (dump_stack) from [<c0119d68>] (__warn+0xac/0xdc)
[ 95.896593] [<c0119d68>] (__warn) from [<c0119e10>] (warn_slowpath_fmt+0x78/0xa0)
[ 95.904987] [<c0119e10>] (warn_slowpath_fmt) from [<c0561bac>] (rtl8821c_power_on+0xa4/0xf4)
[ 95.914451] [<c0561bac>] (rtl8821c_power_on) from [<c053764c>] (rtw_hal_power_on+0x18/0x40)
[ 95.923818] [<c053764c>] (rtw_hal_power_on) from [<c0570728>] (_halmac_init_hal+0x2c/0x18c)
[ 95.933183] [<c0570728>] (_halmac_init_hal) from [<c05708a4>] (rtw_halmac_init_hal_fw+0x8/0xc)
[ 95.942844] [<c05708a4>] (rtw_halmac_init_hal_fw) from [<c0561d24>] (rtl8821c_hal_init_main+0x3c/0x160)
[ 95.953382] [<c0561d24>] (rtl8821c_hal_init_main) from [<c0562058>] (rtl8821c_hal_init+0x14/0x6c)
[ 95.963336] [<c0562058>] (rtl8821c_hal_init) from [<c05694f0>] (rtl8821cu_hal_init+0x1c/0xc0)
[ 95.972900] [<c05694f0>] (rtl8821cu_hal_init) from [<c0537ffc>] (rtw_hal_init+0x30/0x1bc)
[ 95.982071] [<c0537ffc>] (rtw_hal_init) from [<c0516dd8>] (_netdev_open+0x94/0x2b0)
[ 95.990656] [<c0516dd8>] (_netdev_open) from [<c0517074>] (netdev_open+0x80/0xa4)
[ 95.999047] [<c0517074>] (netdev_open) from [<c0754818>] (__dev_open+0xdc/0x14c)
[ 96.007340] [<c0754818>] (__dev_open) from [<c0754b04>] (__dev_change_flags+0xf0/0x1a8)
[ 96.016319] [<c0754b04>] (__dev_change_flags) from [<c0754bd4>] (dev_change_flags+0x18/0x48)
[ 96.025781] [<c0754bd4>] (dev_change_flags) from [<c07c3c3c>] (devinet_ioctl+0x2b0/0x614)
[ 96.034951] [<c07c3c3c>] (devinet_ioctl) from [<c07c5f3c>] (inet_ioctl+0x1b8/0x204)
[ 96.043537] [<c07c5f3c>] (inet_ioctl) from [<c07352fc>] (sock_ioctl+0x30c/0x434)
[ 96.051832] [<c07352fc>] (sock_ioctl) from [<c01f4fe8>] (vfs_ioctl+0x18/0x3c)
[ 96.059835] [<c01f4fe8>] (vfs_ioctl) from [<c01f5d9c>] (do_vfs_ioctl+0x620/0x6c8)
[ 96.068225] [<c01f5d9c>] (do_vfs_ioctl) from [<c01f5e78>] (ksys_ioctl+0x34/0x5c)
[ 96.076518] [<c01f5e78>] (ksys_ioctl) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 96.085101] Exception stack(0xee32bfa8 to 0xee32bff0)
[ 96.090766] bfa0: 000b83fe be88db00 00000003 00008914 be88db00 000b83fe
[ 96.099933] bfc0: 000b83fe be88db00 be88dde8 00000036 be88dcb8 000000b0 000a1880 00000000
[ 96.109098] bfe0: 000d71f4 be88daa4 0001ad2c b6e71958
[ 96.114918] ---[ end trace 8a97abebe479dbb5 ]---