Jump to content

tooz

Tinker Engineer
  • Content Count

    514
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by tooz

  1. yocto 4.0 (kernel 5.10) os v.1.0.2 for tinker board 2s is released and can be downloaded here: Tinker Board 2 /2S Yocto 4.0 (kernel 5.10) V1.0.2
  2. tooz

    I2C Speed

    hello @Jens, sorry for not making it clear, the 10k in the config.txt = 100khz, so if you wanna change both i2c6 & i2c7 to 100k: overlay=i2c6_10k i2c7_10k (separate the variants with space instead of comma) the speed is 400k by default, if you want to change them back to 400k, just remove the line overlay=i2c6_10k i2c7_10k
  3. hello @lloydhussell, yes you can (there's a reddit r/tinkerboard on reddit too https://www.reddit.com/r/tinkerboard/?rdt=62313 , fwiw)
  4. tooz

    I2C Speed

    hello @Jens, you can set the speed to 40k or 10k (it's 40k by default). to change the speed to 10k using overlay: 1. download the dtbo files and i2cspeed.sh from: https://www.asuswebstorage.com/navigate/a/#/s/258BFBD7E61045C9BECB7DA044378A844 2. move i2c6_10k.dtbo & i2c7_10k.dtbo to /boot/overlays 3. sudo vim /boot/config.txt modify the last line in config.txt overlay=i2c6_10K (if you're using i2c7, then the last line should be overlay=i2c7_10k) 4. save and reboot tinker board 2s 5. to verify the change comes effective using i2cspeed.sh sudo chmod +x i2cspeed.sh ./i2cspeed.sh the script then prints the i2c clock frequency
  5. tooz

    I2C Speed

    hello @Jens, you can set the speed to 40k or 10k (it's 40k by default). to change the speed to 10k using overlay: 1. download the dtbo files and i2cspeed.sh from: https://www.asuswebstorage.com/navigate/a/#/s/258BFBD7E61045C9BECB7DA044378A844 2. move i2c6_10k.dtbo & i2c7_10k.dtbo to /boot/overlays 3. sudo vim /boot/config.txt modify the last line in config.txt overlay=i2c6_10K (if you're using i2c7, then the last line should be overlay=i2c7_10k) 4. save and reboot tinker board 2s 5. to verify the change comes effective using i2cspeed.sh sudo chmod +x i2cspeed.sh ./i2cspeed.sh the script then prints the i2c clock frequency
  6. hello @lloydhussell the order of sound cards depends on which driver completes first -- so for tinker board 2s( without any modification): hdmi=0, dp=1, following new device=2, new device2=3 and so on. for android, the order goes: usb-> hdmi-> dp, so when booting with usb mic inserted it's usb=0, hdmi=1, dp=2; and changes to hdmi=1, dp=2 when usb mic is removed
  7. hello @lloydhussell, what's the result if you sudo aplay -l instead of aplay -l? and what's the version of the linux os you're using?
  8. hello @lloydhussell, please refer to the user manual: Tinker Board (asus.com)
  9. hello @lloydhussell, if the maskrom pin is inserted, the tinker board 2s enters rom istead of system, and having no hdmi output is expected.
  10. tooz

    Kernel v6

    hello @M95D, kernel v.6 is not supported just yet, the reason why the wifi is hardly detected might be the mmc sdio driver difference (kernel v.6 & kernel v.4.4) [ 4.394371] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0) [ 4.489425] mmc_host mmc2: Bus speed (slot 0) = 49500000Hz (slot req 50000000Hz, actual 49500000HZ div = 0) [ 4.490020] mmc2: new high speed SDIO card at address 0001 [ 6.561012] mmc2:mmc host rescan start!
  11. hello @lloydhussell, the reason why this bool is set to true is to disable the usb permission dialog popup. we unfortunately don't have any documentation for this. checking aosp docs (like this: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/android12-release/core/res/res/values/config.xml ) would be the best solution if you'd like to customize tinker board 2s
  12. hello @lloydhussell, the documentation was indeed outdated, just updated the command with the correct url, thank you Developer Guide · TinkerBoard/TinkerBoard Wiki (github.com)
  13. tooz

    KERNEL4.4.132+ HEAD

    Building Linux headers for Tinker Board R2.0: git clone https://github.com/TinkerBoard/debian_kernel.git cd debian_kernel make ARCH=arm distclean make ARCH=arm miniarm-rk3288_defconfig make ARCH=arm bindeb-pkg RK_KERNEL_DTS=rk3288-miniarm to fix the errors during compilation: error 1: CC arch/arm/kernel/vdso.o arch/arm/kernel/vdso.c: In function ‘vdso_init’ arch/arm/kernel/vdso.c:182:6: warning: ‘memcmp’ reading 4 bytes from a region of size 1 [-Wstringop-overflow=] error, forbidden warning: vdso.c:182 make[3]: *** [scripts/Makefile.build:278: arch/arm/kernel/vdso.o] Error 1 make[2]: *** [Makefile:1028: arch/arm/kernel] Error 2 make[1]: *** [scripts/package/Makefile:96: bindeb-pkg] Error 2 make: *** [Makefile:1316: bindeb-pkg] Error 2 cause: The current kernel sources provided are not compatible as of right now with GCC8. Until the kernel sources are patched, you need to use a gcc version that is compatible fix: use gcc7 instead of gcc8 error 2: CC drivers/net/usb/qmi_wwan.o drivers/net/usb/qmi_wwan.c: In function ‘qmi_wwan_tx_fixup’: drivers/net/usb/qmi_wwan.c:32:2: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] error, forbidden warning: qmi_wwan.c:32 make[5]: *** [scripts/Makefile.build:278: drivers/net/usb/qmi_wwan.o] Error 1 make[4]: *** [scripts/Makefile.build:484: drivers/net/usb] Error 2 make[3]: *** [scripts/Makefile.build:484: drivers/net] Error 2 make[2]: *** [Makefile:1028: drivers] Error 2 make[1]: *** [scripts/package/Makefile:96: bindeb-pkg] Error 2 make: *** [Makefile:1316: bindeb-pkg] Error 2 fix: edit the qmi_wwan_tx_fixup in /qmi_wwan.c, and start a new line for the if statement else skb_reset_mac_header(skb); if (skb_pull(skb, Eth_HLEN)) { return skb; } else { Dev_err(&dev->intf->dev,”Packet Dropped “);
  14. tooz

    KERNEL4.4.132+ HEAD

    hello @walter, the kernel header (4.4.132) can be downloaded here: https://www.asuswebstorage.com/navigate/a/#/s/0A7B214566FE4B3F9439CC570B5390284
  15. hello @SimT, if the tinker edge r's recognised as 'asus usb download gadget' it's likely that it's entered fastboot/ maskrom mode. if you've flashed android os on tinker edge r for the first time, it'll take about 100 to 200 seconds for tinker edge r to init (in fastboot mode), and the board will reboot once init is finished -- it's necessary for tinker edge r to complete init before it gets into the ums mode. if your tinker edge r is stuck in fastboot mode, we'll need the pid/ vid to further the debugging. to find pid/ vid on mac: about this mac -> overview -> system report -> hardware -> usb
  16. hello @kamuycikap, looks like tinker the board 2s was not on universal mass storage (ums) mode. 1. was the short circuit cap attached? if so, please remove it whilst the board's connected to your laptop 2. have you flashed tinker board 2s? the board has to be flashed first to get ums supported 3. what's the pid/ vid? if it's not 0B05:7820 it's likely that your tinker board 2s has entered maskroom mode, hence why it's unrecognized
  17. tooz

    Kernel v6

    hello @M95D, does it happen all the time? what's the occurence? which os did you compile? is it a debian with kernel v6.5?
  18. hello @M@riusz, are you connecting it to i2c1? please space it instead of using a comma: overlay=ds1307-overlay mcp2515-can0
  19. hello @M@riusz, please copy the dtb files from https://www.asuswebstorage.com/navigate/a/#/s/00E9A5E1D5AC45FFBE5EBC6738DFEFAB4 to /boot/overlay, and modify /boot/config.txt to enable spi2 accordingly. overlay=mcp251x-can0-tinker1 save the /boot/config.txt and then reboot tinker board r2.0 confirm that can0 can be recognized with command: ifconfig can0
  20. hello @ken, tinker board 2s will shut down if the cpu is overheated i'm not sure whether there's an issue with cpu or ddr, seems like both can be the possible cause. it'd be helpful to have the console log for debugging. are you running the system with os release from tinker board? if so, what's the version of the os?
  21. hello @ken, the hardware watchdog is enabled by default. from what you've described sounds like the system shut down because of overheating -- what's the enviornment and was the heatsink attached? please connect tinker board 2s with a usb to ttl serial cable to collect serial logs (instruction can be found here: https://tinker-board.asus.com/forum/index.php?/topic/14971-how-to-enable-serial-console-in-2s/&do=findComment&comment=15287 ) so we know what causes the trouble
  22. hello @minami, it's been updated to github: TinkerBoard-Android/rockchip-android-manifest (github.com) sorry for the inconvenience
  23. hello @haonc, i don't think this camera module is on the qualified vendor list nor been calibrated yet. i will let you know once i have more information from my colleagues.
  24. hello @Tolga, please refer to the setting below. It’s not necessary to use uart1, uart2 or uart4 can be used, too. Using uart3 however is not suggested, since it’s used for uart log output https://github.com/TinkerBoard/TinkerBoard/wiki/User-Guide#gpio-config-table-for-tinker-board-and-tinker-board-s First, modify the /boot/config.txt file as follows, and then reboot to enable I2C1 and I2C4. ##### Hardware Interface Config ####### Note: fiq_debugger and uart3 use the same pin. Set fiq_debugger first while bb oth on. ## ## Note: uart4 and spi0 are the same pins. Set the latter one while both on. ## ## Note: uart2 is the same pins to pwm2 and pwm3. Set the latter one while both on. ## intf:fiq_debugger=on intf:i2c1=on intf:i2c4=on #intf:spi0=off #intf:spi2=off #intf:pwm2=off #intf:pwm3=off intf:pcm_i2s=on intf:uart1=on #intf:uart2=off #intf:uart3=off #intf:uart4=off Chip,line Device Path GPIO number Function2 Function1 GPIO Pin# Pin# GPIO Function1 Function2 GPIO number Device Path Chip,line --- --- --- --- VCC3.3V_IO --- 1 2 --- VCC5V_SYS --- --- --- --- 8,4 GPIO:/sys/class/gpio/gpio252 I2C:/dev/i2c-1 252 --- I2C1_SDA GPIO8_A4 3 4 --- VCC5V_SYS --- --- --- --- 8,5 GPIO:/sys/class/gpio/gpio253 I2C:/dev/i2c-1 253 --- I2C1_SCL GPIO8_A5 5 6 --- GND --- --- --- --- 0,17 GPIO:/sys/class/gpio/gpio17 17 --- TEST_CLKOUT GPIO0_C1 7 8 GPIO5_B1 UART1_TXD --- 161 GPIO:/sys/class/gpio/gpio161 UART:/dev/ttyS1 5,9 --- --- --- --- GND --- 9 10 GPIO5_B0 UART1_RXD --- 160 GPIO:/sys/class/gpio/gpio160 UART:/dev/ttyS1 5,8 5,12 GPIO:/sys/class/gpio/gpio164 SPI:/dev/spidev0 UART:/dev/ttyS4 164 UART4_CTSN SPI0_CLK GPIO5_B4 11 12 GPIO6_A0 I2S_SCLK --- 184 GPIO:/sys/class/gpio/gpio184 6,0 5,14 GPIO:/sys/class/gpio/gpio166 SPI:/dev/spidev0 UART:/dev/ttyS4 166 UART4_TXD SPI0_TXD GPIO5_B6 13 14 --- GND --- --- --- --- 5,15 GPIO:/sys/class/gpio/gpio167 SPI:/dev/spidev0 UART:/dev/ttyS4 167 UART4_RXD SPI0_RXD GPIO5_B7 15 16 GPIO5_B2 UART1_CTSN --- 162 GPIO:/sys/class/gpio/gpio162 UART:/dev/ttyS1 5,10 --- --- --- --- VCC3.3V_IO --- 17 18 GPIO5_B3 UART1_RTSN --- 163 GPIO:/sys/class/gpio/gpio163 UART:/dev/ttyS1 5,11 8,9 GPIO:/sys/class/gpio/gpio257 SPI:/dev/spidev2 257 --- SPI2_TXD GPIO8_B1 19 20 --- GND --- --- --- --- 8,8 GPIO:/sys/class/gpio/gpio256 SPI:/dev/spidev2 256 --- SPI2_RXD GPIO8_B0 21 22 GPIO5_C3 --- --- 171 GPIO:/sys/class/gpio/gpio171 5,19 8,6 GPIO:/sys/class/gpio/gpio254 SPI:/dev/spidev2 254 --- SPI2_CLK GPIO8_A6 23 24 GPIO8_A7 SPI2_CSN0 --- 255 GPIO:/sys/class/gpio/gpio255 SPI:/dev/spidev2.0 8,7 --- --- --- --- GND --- 25 26 GPIO8_A3 SPI2_CSN1 --- 251 GPIO:/sys/class/gpio/gpio251 SPI:/dev/spidev2.1 8,3 7,17 GPIO:/sys/class/gpio/gpio233 I2C:/dev/i2c-4 233 --- I2C4_SDA GPIO7_C1 27 28 GPIO7_C2 I2C4_SCL --- 234 GPIO:/sys/class/gpio/gpio234 I2C:/dev/i2c-4 7,18 5,13 GPIO:/sys/class/gpio/gpio165 SPI:/dev/spidev0.0 165 UART4_RTSN SPI0_CSN0 GPIO5_B5 29 30 --- GND --- --- --- --- 5,16 GPIO:/sys/class/gpio/gpio168 SPI:/dev/spidev0.1 168 --- SPI0_CSN1 GPIO5_C0 31 32 GPIO7_C7 UART2_TXD PWM 239 GPIO:/sys/class/gpio/gpio239 UART:/dev/ttyS2 PWM:/sys/class/pwm/pwmchip3 7,23 7,22 GPIO:/sys/class/gpio/gpio238 UART:/dev/ttyS2 PWM:/sys/class/pwm/pwmchip2 238 PWM2 UART2_RXD GPIO7_C6 33 34 --- GND --- --- --- --- 6,1 GPIO:/sys/class/gpio/gpio185 185 --- I2S_LRCKRX GPIO6_A1 35 36 I2S_LRCKRX UART3_RXD --- 233 GPIO:/sys/class/gpio/gpio223 UART:/dev/ttyS3 7,7 7,8 GPIO:/sys/class/gpio/gpio224 UART:/dev/ttyS3 224 --- UART3_TXD GPIO7_B0 37 38 GPIO6_A3 I2S_SDI --- 187 GPIO:/sys/class/gpio/gpio187 6,3 --- --- --- --- GND --- 39 40 GPIO6_A4 I2S_SDO0 --- 188 GPIO:/sys/class/gpio/gpio188 6,4
  25. hello @Shtrihcode, this will be fixed in the next release, thanks for letting us know and sorry for the inconvenience
×
×
  • Create New...