[Solved] Asus TB S

This is for any ARMv7 device that we do not officially support.

Re: [Solved] Asus TB S

Postby TheSaint » Thu Aug 23, 2018 12:58 am

I'd like say that the patch set are good job and finally fixing problem regarding the UMS mode.
There's a small issue when the kernel started, as mentioned in the previous post. So there could be similar patches to solve the issue.
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: [Solved] Asus TB S

Postby summers » Thu Aug 23, 2018 9:19 am

Good stuff, glad that it worked. yes I noted that the patch to the device tree was what I was thinking was needed so it could be detected.

Did wi-fi come up? My reading was that also needed patches to the device tree, these were on the debian patches - but I couldn't see any that you posted yesterday. I'm guessing when you did the "mmc info" that you din't have an sd card plugged in? I had hoped that both mmc and sd would both be detected when patches applied ...

If I redo my device tree patch set, are you OK to test? I won't get time till the weekend. As much as anything I want a set of clean patches that I can then mainline to linux/u-boot. Then if accepted, in something like 3 months it will be mainlined - and so easier for everyone to maintain ...

Oh yes - do you have the part number for the eMMC? The various device trees just enable many modes - whereas what would make more sense its just to select what the TB S can use ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: [Solved] Asus TB S

Postby TheSaint » Fri Aug 24, 2018 6:47 am

$this->bbcode_second_pass_quote('summers', 'G')ood stuff, glad that it worked. yes I noted that the patch to the device tree was what I was thinking was needed so it could be detected.

We still a bit fare from the shore, yet. I might say the u-boot is working, but a bit of troubles from the kernel. I'm investigating what could be the cause, you may look at the kernel report if you can guess some input$this->bbcode_second_pass_code('', 'U-Boot SPL 2018.09-rc1-00047-ga30691a538-dirty (Aug 23 2018 - 09:22:02 +0800)
Returning to boot ROM...


U-Boot 2018.09-rc1-00047-ga30691a538-dirty (Aug 23 2018 - 09:22:02 +0800)

Model: Tinker-RK3288
DRAM: 2 GiB
PC event = 0x0
usb_current_limit_ctrl: unlock_current = 0
MMC: dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Failed (-5)
In: serial
Out: serial
Err: serial
Model: Tinker-RK3288
Net: eth0: ethernet@ff290000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
750 bytes read in 0 ms
## Executing script at 00000000
6223320 bytes read in 145 ms (40.9 MiB/s)
50542 bytes read in 19 ms (2.5 MiB/s)
5406805 bytes read in 127 ms (40.6 MiB/s)
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Ramdisk to 0fad7000, end 0ffff055 ... OK
Loading Device Tree to 0fac7000, end 0fad656d ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x500
[ 0.000000] Linux version 4.17.11-1-ARCH (builduser@leming) (gcc version 8.1.1 20180531 (GCC)) #1 SMP PREEMPT Sun Jul 29 01:39:38 UTC 2018
[ 0.000000] CPU: ARMv7 Processor [410fc0d1] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Rockchip RK3288 Tinker Board
[ 0.000000] Malformed early option 'console'
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 48 MiB at 0x7d000000
[ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x484 with crng_init=0
[ 0.000000] percpu: Embedded 17 pages/cpu @(ptrval) s37900 r8192 d23540 u69632
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 522560
[ 0.000000] Kernel command line: console=ttyS2,115200n8 console= root=PARTUUID=44938476-01 rw rootwait
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 2001652K/2097152K available (12288K kernel code, 1026K rwdata, 4844K rodata, 1024K init, 879K bss, 46348K reserved, 49152K cma-reserved, 1261568K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (13280 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) (1027 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 880 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000025] Switching to timer-based delay loop, resolution 41ns
[ 0.004708] Console: colour dummy device 80x30
[ 0.004751] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.004772] pid_max: default: 32768 minimum: 301
[ 0.005008] Security Framework initialized
[ 0.005216] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.005236] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.006183] CPU: Testing write buffer coherency: ok
[ 0.006520] CPU0: thread -1, cpu 0, socket 5, mpidr 80000500
[ 0.024817] Setting up static identity map for 0x300000 - 0x3000a0
[ 0.028827] Hierarchical SRCU implementation.
[ 0.040911] smp: Bringing up secondary CPUs ...
[ 0.066273] CPU1: thread -1, cpu 1, socket 5, mpidr 80000501
[ 0.090407] CPU2: thread -1, cpu 2, socket 5, mpidr 80000502
[ 0.114543] CPU3: thread -1, cpu 3, socket 5, mpidr 80000503
[ 0.114703] smp: Brought up 1 node, 4 CPUs
[ 0.114734] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[ 0.114745] CPU: All CPU(s) started in SVC mode.
[ 0.116317] devtmpfs: initialized
[ 0.127772] VFP support v0.3: implementor 41 architecture 3 part 30 variant d rev 0
[ 0.128239] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.128265] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.130022] xor: measuring software checksum speed
[ 0.169509] arm4regs : 1050.000 MB/sec
[ 0.209610] 8regs : 809.000 MB/sec
[ 0.249708] 32regs : 786.000 MB/sec
[ 0.289811] neon : 1398.000 MB/sec
[ 0.289824] xor: using function: neon (1398.000 MB/sec)
[ 0.289884] pinctrl core: initialized pinctrl subsystem
[ 0.291875] NET: Registered protocol family 16
[ 0.294624] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.297120] cpuidle: using governor menu
[ 0.297807] No ATAGs?
[ 0.298006] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.298025] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.299342] Serial: AMBA PL011 UART driver
[ 0.414927] raid6: int32x1 gen() 95 MB/s
[ 0.482865] raid6: int32x1 xor() 108 MB/s
[ 0.551060] raid6: int32x2 gen() 114 MB/s
[ 0.619253] raid6: int32x2 xor() 133 MB/s
[ 0.687493] raid6: int32x4 gen() 159 MB/s
[ 0.755635] raid6: int32x4 xor() 142 MB/s
[ 0.823885] raid6: int32x8 gen() 190 MB/s
[ 0.892130] raid6: int32x8 xor() 139 MB/s
[ 0.960349] raid6: neonx1 gen() 348 MB/s
[ 1.028361] raid6: neonx1 xor() 468 MB/s
[ 1.096598] raid6: neonx2 gen() 429 MB/s
[ 1.164659] raid6: neonx2 xor() 626 MB/s
[ 1.232830] raid6: neonx4 gen() 684 MB/s
[ 1.300989] raid6: neonx4 xor() 707 MB/s
[ 1.369156] raid6: neonx8 gen() 647 MB/s
[ 1.437303] raid6: neonx8 xor() 632 MB/s
[ 1.437314] raid6: using algorithm neonx4 gen() 684 MB/s
[ 1.437325] raid6: .... xor() 707 MB/s, rmw enabled
[ 1.437335] raid6: using neon recovery algorithm
[ 1.445313] rk_iommu ff930300.iommu: Failed to get clk 'aclk': -2
[ 1.446129] rk_iommu ff940300.iommu: Failed to get clk 'aclk': -2
[ 1.447413] vgaarb: loaded
[ 1.448288] SCSI subsystem initialized
[ 1.448754] usbcore: registered new interface driver usbfs
[ 1.448817] usbcore: registered new interface driver hub
[ 1.448915] usbcore: registered new device driver usb
[ 1.450864] media: Linux media interface: v0.10
[ 1.450910] Linux video capture interface: v2.00
[ 1.450972] pps_core: LinuxPPS API ver. 1 registered
[ 1.450984] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 1.451009] PTP clock support registered
[ 1.451047] EDAC MC: Ver: 3.0.0
[ 1.452157] Advanced Linux Sound Architecture Driver Initialized.
[ 1.452698] NetLabel: Initializing
[ 1.452713] NetLabel: domain hash size = 128
[ 1.452723] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 1.452803] NetLabel: unlabeled traffic allowed by default
[ 1.453207] clocksource: Switched to clocksource arch_sys_counter
[ 1.453612] VFS: Disk quotas dquot_6.6.0
[ 1.453700] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.465816] NET: Registered protocol family 2
[ 1.466660] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 1.466709] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 1.466793] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 1.466987] TCP: Hash tables configured (established 8192 bind 8192)
[ 1.467104] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 1.467159] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 1.467412] NET: Registered protocol family 1
[ 1.472089] RPC: Registered named UNIX socket transport module.
[ 1.472105] RPC: Registered udp transport module.
[ 1.472116] RPC: Registered tcp transport module.
[ 1.472125] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.472610] Unpacking initramfs...
[ 1.994856] Freeing initrd memory: 5284K
[ 1.995700] hw perfevents: enabled with armv7_cortex_a12 PMU driver, 7 counters available
[ 1.998224] Initialise system trusted keyrings
[ 1.998444] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[ 2.003921] zbud: loaded
[ 2.006404] NFS: Registering the id_resolver key type
[ 2.006447] Key type id_resolver registered
[ 2.006460] Key type id_legacy registered
[ 2.006489] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 2.015418] Key type asymmetric registered
[ 2.015437] Asymmetric key parser 'x509' registered
[ 2.015508] bounce: pool size: 64 pages
[ 2.015587] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 2.015790] io scheduler noop registered
[ 2.015805] io scheduler deadline registered
[ 2.016067] io scheduler cfq registered (default)
[ 2.016082] io scheduler mq-deadline registered
[ 2.016094] io scheduler kyber registered
[ 2.016331] io scheduler bfq registered
[ 2.041928] dma-pl330 ff250000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 2.041951] dma-pl330 ff250000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[ 2.042727] dma-pl330 ffb20000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 2.042748] dma-pl330 ffb20000.dma-controller: DBUFF-64x8bytes Num_Chans-5 Num_Peri-6 Num_Events-10
[ 2.049786] Serial: 8250/16550 driver, 6 ports, IRQ sharing enabled
[ 2.053236] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 33, base_baud = 1500000) is a 16550A
[ 2.054271] ff190000.serial: ttyS1 at MMIO 0xff190000 (irq = 34, base_baud = 1500000) is a 16550A
[ 2.055317] ff690000.serial: ttyS2 at MMIO 0xff690000 (irq = 35, base_baud = 1500000) is a 16550A
[ 3.055927] console [ttyS2] enabled
[ 3.060863] ff1b0000.serial: ttyS3 at MMIO 0xff1b0000 (irq = 36, base_baud = 1500000) is a 16550A
[ 3.071831] ff1c0000.serial: ttyS4 at MMIO 0xff1c0000 (irq = 37, base_baud = 1500000) is a 16550A
[ 3.083314] Serial: AMBA driver
[ 3.101507] loop: module loaded
[ 3.106414] Loading iSCSI transport class v2.0-870.
[ 3.112325] iscsi: registered transport (tcp)
[ 3.123627] libphy: Fixed MDIO Bus: probed
[ 3.132363] dwc2 ff540000.usb: ff540000.usb supply vusb_d not found, using dummy regulator
[ 3.141732] dwc2 ff540000.usb: ff540000.usb supply vusb_a not found, using dummy regulator
[ 3.209467] dwc2 ff540000.usb: DWC OTG Controller
[ 3.214809] dwc2 ff540000.usb: new USB bus registered, assigned bus number 1
[ 3.222756] dwc2 ff540000.usb: irq 42, io mem 0xff540000
[ 3.229020] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.17
[ 3.238302] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.246408] usb usb1: Product: DWC OTG Controller
[ 3.251691] usb usb1: Manufacturer: Linux 4.17.11-1-ARCH dwc2_hsotg
[ 3.258721] usb usb1: SerialNumber: ff540000.usb
[ 3.264569] hub 1-0:1.0: USB hub found
[ 3.268845] hub 1-0:1.0: 1 port detected
[ 3.273959] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
[ 3.283311] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
[ 3.417298] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[ 3.425770] dwc2 ff580000.usb: DWC OTG Controller
[ 3.431093] dwc2 ff580000.usb: new USB bus registered, assigned bus number 2
[ 3.439030] dwc2 ff580000.usb: irq 43, io mem 0xff580000
[ 3.445256] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.17
[ 3.454534] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.462638] usb usb2: Product: DWC OTG Controller
[ 3.467921] usb usb2: Manufacturer: Linux 4.17.11-1-ARCH dwc2_hsotg
[ 3.474951] usb usb2: SerialNumber: ff580000.usb
[ 3.480724] hub 2-0:1.0: USB hub found
[ 3.485103] hub 2-0:1.0: 1 port detected
[ 3.491006] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.498338] ehci-pci: EHCI PCI platform driver
[ 3.503415] ehci-platform: EHCI generic platform driver
[ 3.509535] ehci-platform ff500000.usb: EHCI Host Controller
[ 3.515922] ehci-platform ff500000.usb: new USB bus registered, assigned bus number 3
[ 3.524903] ehci-platform ff500000.usb: irq 41, io mem 0xff500000
[ 3.669253] usb 1-1: new high-speed USB device number 2 using dwc2
[ 3.689257] ehci-platform ff500000.usb: USB 2.0 started, EHCI 1.00
[ 3.696459] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.17
[ 3.705746] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.713845] usb usb3: Product: EHCI Host Controller
[ 3.719324] usb usb3: Manufacturer: Linux 4.17.11-1-ARCH ehci_hcd
[ 3.726163] usb usb3: SerialNumber: ff500000.usb
[ 3.731909] hub 3-0:1.0: USB hub found
[ 3.736197] hub 3-0:1.0: 1 port detected
[ 3.741287] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 3.747388] ehci-omap: OMAP-EHCI Host Controller driver
[ 3.753447] ehci-orion: EHCI orion driver
[ 3.758161] ehci-exynos: EHCI EXYNOS driver
[ 3.763075] tegra-ehci: Tegra EHCI driver
[ 3.767796] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 3.774775] ohci-pci: OHCI PCI platform driver
[ 3.779829] ohci-platform: OHCI generic platform driver
[ 3.785945] ohci-exynos: OHCI EXYNOS driver
[ 3.791444] usbcore: registered new interface driver uas
[ 3.797526] usbcore: registered new interface driver usb-storage
[ 3.804317] usbcore: registered new interface driver ums-cypress
[ 3.811103] usbcore: registered new interface driver ums_eneub6250
[ 3.818068] usbcore: registered new interface driver ums-freecom
[ 3.824853] usbcore: registered new interface driver ums-isd200
[ 3.831539] usbcore: registered new interface driver ums-usbat
[ 3.846331] i2c /dev entries driver
[ 3.852204] rk3x-i2c ff170000.i2c: Initialized RK3xxx I2C bus at (ptrval)
[ 3.861334] rk808 0-001b: chip id: 0x0
[ 3.870026] DCDC_REG1: supplied by vcc_sys
[ 3.875686] DCDC_REG2: supplied by vcc_sys
[ 3.881237] DCDC_REG3: supplied by vcc_sys
[ 3.886130] DCDC_REG4: supplied by vcc_sys
[ 3.891505] LDO_REG1: supplied by vcc_sys
[ 3.897491] LDO_REG2: supplied by vcc_sys
[ 3.898770] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
[ 3.903160] LDO_REG3: supplied by vcc_sys
[ 3.911193] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 3.916966] LDO_REG4: supplied by vcc_io
[ 3.923686] usb 1-1: Product: USB2.0 Hub
[ 3.928755] hub 1-1:1.0: USB hub found
[ 3.933797] LDO_REG5: supplied by vcc_io
[ 3.937069] hub 1-1:1.0: 4 ports detected
[ 3.941923] LDO_REG6: supplied by vcc_io
[ 3.951474] LDO_REG7: supplied by vcc_sys
[ 3.957355] LDO_REG8: supplied by vcc_sys
[ 3.963045] SWITCH_REG1: supplied by vcc_io
[ 3.968111] SWITCH_REG2: supplied by vcc_io
[ 3.975655] random: fast init done
[ 3.980525] rk808-rtc rk808-rtc: registered as rtc0
[ 3.986147] rk3x-i2c ff650000.i2c: Initialized RK3xxx I2C bus at (ptrval)
[ 3.994542] rk3x-i2c ff660000.i2c: Initialized RK3xxx I2C bus at (ptrval)
[ 4.008800] rockchip-thermal ff280000.tsadc: Missing rockchip,grf property
[ 4.022008] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 500000 KHz
[ 4.030553] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 600000 KHz
[ 4.041164] sdhci: Secure Digital Host Controller Interface driver
[ 4.048077] sdhci: Copyright(c) Pierre Ossman
[ 4.053393] Synopsys Designware Multimedia Card Interface Driver
[ 4.060678] dwmmc_rockchip ff0c0000.dwmmc: IDMAC supports 32-bit address mode.
[ 4.068788] dwmmc_rockchip ff0c0000.dwmmc: Using internal DMA controller.
[ 4.076392] dwmmc_rockchip ff0c0000.dwmmc: Version ID is 270a
[ 4.082825] usb 3-1: new high-speed USB device number 2 using ehci-platform
[ 4.090646] dwmmc_rockchip ff0c0000.dwmmc: DW MMC controller at irq 30,32 bit host data width,256 deep fifo
[ 4.114288] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 4.137306] VUB300 Driver rom wait states = 1C irqpoll timeout = 0400
[ 4.137503] usbcore: registered new interface driver vub300
[ 4.150967] usbcore: registered new interface driver ushc
[ 4.157323] sdhci-pltfm: SDHCI platform and OF driver helper
[ 4.164698] ledtrig-cpu: registered to indicate activity on CPUs
[ 4.171619] hidraw: raw HID events driver (C) Jiri Kosina
[ 4.177763] usbcore: registered new interface driver usbhid
[ 4.183994] usbhid: USB HID core driver
[ 4.190528] NET: Registered protocol family 10
[ 4.203138] Segment Routing with IPv6
[ 4.207284] mip6: Mobile IPv6
[ 4.210603] NET: Registered protocol family 17
[ 4.219661] Key type dns_resolver registered
[ 4.224513] ThumbEE CPU extension supported.
[ 4.229291] Registering SWP/SWPB emulation handler
[ 4.234912] registered taskstats version 1
[ 4.239493] Loading compiled-in X.509 certificates
[ 4.244890] zswap: loaded using pool lzo/zbud
[ 4.250499] Btrfs loaded, crc32c=crc32c-generic
[ 4.263884] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 4.271932] rk808-rtc rk808-rtc: setting system clock to 2013-01-18 08:51:13 UTC (1358499073)
[ 4.281470] sr_init: No PMIC hook to init smartreflex
[ 4.287712] vcc_sd: supplied by vcc_io
[ 4.291942] vcc_sd: disabling
[ 4.295265] ALSA device list:
[ 4.298579] No soundcards found.
[ 4.302481] ttyS2 - failed to request DMA
[ 4.307488] Freeing unused kernel memory: 1024K
:: running early hook [udev]
Warning: /lib/modules/4.17.11-1-ARCH/modules.devname not found - ignoring
starting version 239
:: running hook [udev]
:: Triggering uevents...
[ 4.434804] usb 3-1: config 1 has an invalid interface number: 255 but max is 6
[ 4.442990] usb 3-1: config 1 has no interface number 6
[ 4.450016] usb 3-1: New USB device found, idVendor=0bda, idProduct=481a, bcdDevice= 0.00
[ 4.465228] usb 3-1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[ 4.473220] usb 3-1: Product: USB Audio
[ 4.477521] usb 3-1: Manufacturer: Generic
[ 4.482118] usb 3-1: SerialNumber: 201405280001
[ 4.497798] input: Generic USB Audio as /devices/platform/ff500000.usb/usb3/3-1/3-1:1.255/0003:0BDA:481A.0001/input/input1
[ 4.497907] mmc_host mmc0: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[ 4.553888] mmc_host mmc0: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[ 4.569428] hid-generic 0003:0BDA:481A.0001: input,hiddev0,hidraw0: USB HID v1.11 Device [Generic USB Audio] on usb-ff500000.usb-1/input255
[ 4.593889] mmc_host mmc0: Bus speed (slot 0) = 187500Hz (slot req 100000Hz, actual 93750HZ div = 1)
Waiting 10 seconds for device /dev/disk/by-partuuid/44938476-01 ...
[ 4.954444] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 4.995682] mmc_host mmc0: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[ 5.036914] mmc_host mmc0: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[ 5.078188] mmc_host mmc0: Bus speed (slot 0) = 187500Hz (slot req 100000Hz, actual 93750HZ div = 1)
[ 5.438409] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 5.479620] mmc_host mmc0: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)

Still going forever.....')
I think that there are patches also for the kernel which may solve the mmc0 speed joggling.
$this->bbcode_second_pass_quote('summers', 'D')id wi-fi come up?

Ehm, not yet.
$this->bbcode_second_pass_quote('summers', 'I')f I redo my device tree patch set, are you OK to test?

You're help is gold, it's fine every times.
$this->bbcode_second_pass_quote('summers', 'I') want a set of clean patches that I can then mainline to linux/u-boot. Then if accepted, in something like 3 months it will be mainlined - and so easier for everyone to maintain ...

If we get the proof of concept, I'll announce it to http://tinkerboarding.co.uk/. By that, I mean the way archlinux will start and gives the first conditions to work. I don't mean that it will be completely working. By doing that may be we get some volunteer interested on it.
$this->bbcode_second_pass_quote('summers', 'O')h yes - do you have the part number for the eMMC?

I think is listed a bit early in the thread.
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am
Top

Re: Asus TB S

Postby summers » Fri Aug 24, 2018 8:41 am

Yes can see early in u-boot ff0c and ff0f are coming up - so bith eMMC and sd active - this is good, Means fixed.

Whats odd about the kernel booting, is it mentions ff0c, but not ff0f. Then it just fails to communicate btw.

When you updated the device tree: https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-rockchip/board_tinkerboard/100-tinker-s-eMMC-bootable.patch

did you just update the device tree in u-boot? We need to update both kernel and u-boot. In the end these will be maintained together, but for us we need to do both.

Anyway I'll rejig both, either this evening (get home from work early) or this weekend (which is long here in the UK).
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: Asus TB S

Postby summers » Fri Aug 24, 2018 8:20 pm

Try this - it should bring up emmc. wifi code is crytic - I've done half of it, but other half doesn't work, so I'll have to dig through all the references and sort out.

http://davidjohnsummers.uk/TBS3.tar.gz

Note you will have to copy the dtb to the link /boot/dtbs directory - it should look for the tinkerS file - and you don't have one.

Oh yes your ubs set up - thats in u-boot. I havn't yet tried doing that bit. So with the above link easiest to write to an sd card. As long as you grab the u-boot output on boot, and the linux kernel boot message, we'll be able to see if the eMMC has come up ....
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: Asus TB S

Postby TheSaint » Fri Aug 24, 2018 11:49 pm

According to your guide I wrote the SD card, which gets me to the login. Sorry to disappoint you, but it looks the same last TBS2.
I see something strange$this->bbcode_second_pass_code('', 'fdisk -l
Disk /dev/mmcblk0: 14.4 GiB, 15489564672 bytes, 30253056 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x44938476

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 8200191 8192000 3.9G 83 Linux')
which means eMMC not found.
$this->bbcode_second_pass_code('', '# ls /proc/device-tree/dwmmc\@ff0*
/proc/device-tree/dwmmc@ff0c0000:
bus-width clock-names fifo-depth pinctrl-0 resets
cap-mmc-highspeed clocks interrupts pinctrl-names status
cap-sd-highspeed compatible max-frequency reg vmmc-supply
card-detect-delay disable-wp name reset-names vqmmc-supply

/proc/device-tree/dwmmc@ff0d0000:
bus-width clocks max-frequency reg
cap-sd-highspeed compatible name reset-names
cap-sdio-irq disable-wp non-removable resets
clock-freq-min-max fifo-depth num-slots sd-uhs-sdr104
clock-frequency interrupts pinctrl-0 status
clock-names keep-power-in-suspend pinctrl-names supports-sdio

/proc/device-tree/dwmmc@ff0e0000:
clock-names compatible interrupts name reset-names status
clocks fifo-depth max-frequency reg resets

/proc/device-tree/dwmmc@ff0f0000:
bus-width compatible max-frequency non-removable reg
cap-mmc-highspeed disable-wp mmc-ddr-1_8v num-slots reset-names
clock-names fifo-depth mmc-hs200-1_8v pinctrl-0 resets
clocks interrupts name pinctrl-names status')
I think the patches are fine, but some of them giving warning or error. Have you time to review them ?
Anyway, You may copy last config I posted, there's just the problem on the kernel, which might take a look to the patches on the kernel that they made.
That config make the eMMC working and booting. For the SD card we have the good solution, only wifi to be considered later. Even the module which is working still missing STA function.
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: Asus TB S

Postby summers » Sat Aug 25, 2018 5:36 am

Ideally we need the bootlogs of both u-boot and Linux, or at least "dmesg". Problem is that Linux hasn't been asked to mount the Emmc, but that doesn't mean it can see it ...

So just to be clear, in your u-boot log above you had:
$this->bbcode_second_pass_code('', 'MMC: dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0')
So u-boot saw both the sd card and the eMMC.

Your kernel log had:
$this->bbcode_second_pass_code('', '[ 4.060678] dwmmc_rockchip ff0c0000.dwmmc: IDMAC supports 32-bit address mode.
[ 4.068788] dwmmc_rockchip ff0c0000.dwmmc: Using internal DMA controller.
[ 4.076392] dwmmc_rockchip ff0c0000.dwmmc: Version ID is 270a
[ 4.082825] usb 3-1: new high-speed USB device number 2 using ehci-platform
[ 4.090646] dwmmc_rockchip ff0c0000.dwmmc: DW MMC controller at irq 30,32 bit host data width,256 deep fifo
[ 4.114288] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)')
And so it saw the sd card - but it didn't have any ff0f messages, so the kernel didn't see the eMMC.

So thats what we are looking for.

Oh yes - its not actually that I'm against the armian patches. My aim though is to try and get a solution mainlined. For it to be mainlined it really needs to be a small change.

Now why mainline? My reason is then it becomes part of the infrastructure, the solution is always there - means when someone else wants to make the same board work, its does work automatically.

Whereas with patches that are just walking out in the wild, you have to know to *apply* those patches, and *recompile* the code. Thats enough of a hurdle that most people won't bother.

Then there is the question, if armian has come up with patches, why havn't they mainlined the solution. Now part of mainlining, is the review process. People are going to rip your code apart, and its painful. However it doesn't mean that process shouldn't take place, through the reviewing the process is improved.

E.g. the eMMC changes in the device tree, and simple and self contained - and met a need. Hence they should be accepted easily. The wi-fi device tree changes, are huge - and cut across the whole device tree. How this relates to the wi-fi hardware isn't clear (to me). So the wi-fi changes look to me like they will be harder to mainline ...

Edit: From what I can see UMS is enabled, you need to use the command like $this->bbcode_second_pass_code('', 'ums 0 mmc 0') or something like that
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: Asus TB S

Postby summers » Sat Aug 25, 2018 4:58 pm

OK http://davidjohnsummers.uk/TBS4.tar.gz should enable both wi-fi and the eMMC.

Made a minor change to boot.{scr,txt} that should remove the console error in the kernel log.

If you can see the eMMC both in uboot, and in the kernel, then it should mean you can install on the eMMC.

Still need to know how armian and debian auto start the UMS mode ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: Asus TB S

Postby TheSaint » Sat Aug 25, 2018 10:15 pm

Well, last my attempt was to prepare the whole setup in a image on RAM.
$this->bbcode_second_pass_code('', '$ dd if=/dev/zero of=bin.img bs=1M count=4096
$ cd /tmp
$ mkdir root
$ fdisk bin.img ## creating one partition starting at 8192 sectors offset
$ sudo dd if=<path_to_TBS>/rk-spl-u-boot.img of=test bs=512 seek=64
$ sudo losetup -P /dev/loop0 /tmp/bin.img
$ mkfs.ext4 /dev/loop0p1
$ sudo mount /dev/loop0p1 root/
$ sudo tar -xf ArchLinuxARM-armv7-latest.tar.gz -C root/
$ cd root/
$ sudo ln -s usr/lib/systemd/system/getty@.service etc/systemd/system/getty.target.wants/getty@ttyS2.service
$ sudo cp <path_to_TBS>/rk3288-tinkerS.dtb boot/dtbs/
$ sudo cp <path_to_TBS>/boot.{scr,txt} boot/
$ sudo cp <path_to_TBS>/mkscr boot/
$ cd ..
$ sudo umount root/
$ sudo dd if=bin.img of=/dev/sdc bs=4M status=progress conv=noerror,notrunc,sync
')
Is it right?
Well, I think it is, but I'm going to try once more.
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: Asus TB S

Postby TheSaint » Sat Aug 25, 2018 11:25 pm

$this->bbcode_second_pass_quote('summers', 'I')f you can see the eMMC both in uboot, and in the kernel

it seems not$this->bbcode_second_pass_code('', 'U-Boot 2018.07 (Aug 24 2018 - 20:05:18 +0000)

Model: TinkerS-RK3288
DRAM: 2 GiB
MMC: dwmmc@ff0c0000: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Failed (-5)
In: serial
Out: serial
Err: serial
Model: TinkerS-RK3288')
As report, I'd say there are no changes. Even the TBS4 gave same result like the previous. It means that is booting Arch from SD card, but no detecting the eMMC.
The dmesg gave some extent$this->bbcode_second_pass_code('', '
# dmesg |grep mmc
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 0.000000] rockchip_mmc_get_phase: invalid clk rate
[ 4.086320] dwmmc_rockchip ff0c0000.dwmmc: IDMAC supports 32-bit address mode.
[ 4.094441] dwmmc_rockchip ff0c0000.dwmmc: Using internal DMA controller.
[ 4.102035] dwmmc_rockchip ff0c0000.dwmmc: Version ID is 270a
[ 4.108481] dwmmc_rockchip ff0c0000.dwmmc: DW MMC controller at irq 30,32 bit host data width,256 deep fifo
[ 4.132126] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 4.155275] dwmmc_rockchip ff0d0000.dwmmc: IDMAC supports 32-bit address mode.
[ 4.163377] dwmmc_rockchip ff0d0000.dwmmc: Using internal DMA controller.
[ 4.170983] dwmmc_rockchip ff0d0000.dwmmc: Version ID is 270a
[ 4.177444] dwmmc_rockchip ff0d0000.dwmmc: DW MMC controller at irq 31,32 bit host data width,256 deep fifo
[ 4.188398] dwmmc_rockchip ff0d0000.dwmmc: allocated mmc-pwrseq
[ 4.195018] mmc_host mmc1: card is non-removable.
[ 4.210124] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[ 4.213087] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 4.221057] mmc0: new high speed SDHC card at address 0007
[ 4.238112] mmcblk0: mmc0:0007 SD16G 14.4 GiB
[ 4.244235] dwmmc_rockchip ff0f0000.dwmmc: IDMAC supports 32-bit address mode.
[ 4.248420] mmcblk0: p1
[ 4.255587] dwmmc_rockchip ff0f0000.dwmmc: Using internal DMA controller.
[ 4.263198] dwmmc_rockchip ff0f0000.dwmmc: Version ID is 270a
[ 4.269654] dwmmc_rockchip ff0f0000.dwmmc: DW MMC controller at irq 32,32 bit host data width,256 deep fifo
[ 4.280607] mmc_host mmc2: card is non-removable.
[ 4.295349] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[ 4.306315] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 4.317208] mmc1: new high speed SDIO card at address 0001
[ 4.375045] mmc_host mmc2: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[ 4.434219] mmc_host mmc2: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[ 4.505205] mmc_host mmc2: Bus speed (slot 0) = 187500Hz (slot req 100000Hz, actual 93750HZ div = 1)
[ 6.806799] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
')
But fdisk can't list anything$this->bbcode_second_pass_code('', '$ fdisk -l
fdisk: cannot open /dev/mmcblk0: Permission denied
[alarm@alarm ~]$ su
Password:
[root@alarm alarm]# fdisk -l
Disk /dev/mmcblk0: 14.4 GiB, 15489564672 bytes, 30253056 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xac78841b

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 8388607 8380416 4G 83 Linux')
I'll try to copy to eMMC.....
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am
Top

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 2 guests