[Solved] Asus TB S

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

Re: Asus TB S

Postby TheSaint » Sat Jul 28, 2018 6:56 pm

The partition layout that works with TinkerOS is to have the ESP and one ext4 as root, mostly related to that U-boot. I've arrange two more partitons, before. I was trying a dual boot and to have a separated /home partition.

I'll look further on the kernel messages. I just like to set up the SSH, by writing the relevant data on the SD card. It's a bit of bother to setup keyboard/screen.
Anyway I think it will be the last effort, with keyboard&screen, once the wired connection is working I'll get a headless set up :)

I hope I won't face some hardened secure boot.
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: Asus TB S

Postby summers » Sun Jul 29, 2018 11:07 am

ssh is unlikely to be causing the problem, it comes up as standard on arch. So more likely that the network isn't coming up, so type "ip a", I'd expect it to show probably "eth0" (with a possibility of "usb0"), now that should be set "up" and configured. If any of this fails, that why you have no network.

Secure boot shouldn't be too much of a worry, secure boot is mainly an Armv8 thing, and the rk3288 is an A17 chip, and A17 is Armv7-A. So it would be surprising if you have secure boot. However even if you do, it will be the uboot that is secured. uboot though will boot whatever it is set up for. So we can just use uboot to boot arch.

Only machine I've seen so far that does secure boot, is the odroid-c2, an Cortex-A53 SBC. And that, although it has secure boot, its been set up more as a proof of concept - as payloads (e.g. uboot) can be either signed, or just checksummed; this means you can test signed payloads, but also just used checksummed payloads.

Did you dig into the device tree? I checked linus git tree, to see whats mainline. There isn't a device tree for the tinker board S, but there is one for the tinkerboard:

https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/rk3288-tinker.dts

That loads up the rk3288 cpu config:

https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/rk3288.dtsi

(Also see https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/net/rockchip-dwmac.txt)

These both set up the ethernet as:

$this->bbcode_second_pass_code('', 'gmac: ethernet@ff290000 {
compatible = "rockchip,rk3288-gmac";
reg = <0x0 0xff290000 0x0 0x10000>;
interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_wake_irq";
rockchip,grf = <&grf>;
clocks = <&cru SCLK_MAC>,
<&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
<&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
<&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
clock-names = "stmmaceth",
"mac_clk_rx", "mac_clk_tx",
"clk_mac_ref", "clk_mac_refout",
"aclk_mac", "pclk_mac";
resets = <&cru SRST_MAC>;
reset-names = "stmmaceth";
status = "disabled";
};')

And that looks to me like the guts of the ethernet are part of the rk3288 chip (e.g. it isn;t using an external usb ethernet).

Now this is the device tree for tinker board, looking at the hardware it *may* also work on the tinker board s. Note I haven't been able to find a tinker board s device tree. Hence why its worth checking what device tree you are using, how ethernet is set up, and what the kernel is doing with that information.
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm

Re: Asus TB S

Postby TheSaint » Mon Jul 30, 2018 6:30 am

$this->bbcode_second_pass_quote('summers', 's')sh is unlikely to be causing the problem

I also convene that I won't find problem there.
Last days I loose the concentration and I'm very confused now. The matter is to find a way to set up an access point by WiFi, but then I can't use the wireless ssh.
So if I set a wired connection I face the problem to give the TB a way to connect to internet. I set the internet sharing and I have the dnsmasq server running on the host, but the TB still not able to go thru.
If I boot Alarm, I don't have the wireless card working, then it's puzzling me more in what I may arrange for the best.
So I can't even try a manner to get the updates. Well, I might try to collect the pacman list and populate its cache, by using my laptop downloads.
$this->bbcode_second_pass_quote('summers', 'D')id you dig into the device tree

I couldn't do much, all the problem are to find a suitable environment to workout a solution. Is it possible to use qemu ? and/or docker to try to compile the kernel. It seems that Armbian staff had done a good job. I also need to fix a small point for the WiFi card which is not an AP in full-duplex.

The AUR package got me to download a bunch of programs. Then it involve to add dependencies and some is in conflict with the others and at the first trial there was another program missing, dtc, which perhaps it isn't architecture independent so the compilations didn't go that far :( :cry:
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: Asus TB S

Postby summers » Mon Jul 30, 2018 9:43 am

I can't see wifi mentioned in the device tree, and its an external chip on the tinker board. Looks like its AzureWave AW-NB177NF, which contains a Realtek RTL8723BS.

I guess this is on the usb bus so $this->bbcode_second_pass_code('', 'lsusb') should show it.

looks like the linux driver is rtl8723bs, so try loading that module ....
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm

Re: Asus TB S

Postby TheSaint » Mon Jul 30, 2018 12:36 pm

Last attempt I could boot using Armbian kernel. That kernel doesn't use ESP, but is the very same condition that the WiFi is configured without the kernel module.
I could collect the journal.Perhaps the time isn't updated.
The WiFi chip is marked as RTL8723BS, as you mentioned.
I'm still fighting to get connected via SSH headless, but I've not realize to set up a static IP. A bit difficult to test for me, because the TV-set is in one room and my laptop in another. I'm gonna manage it :)
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: Asus TB S

Postby summers » Tue Jul 31, 2018 12:59 pm

OK - there is something strange going on. Just to work out what you had, I downloaded the ArchLinuxARM-veyron-latest.tar.gz, and whats strange is it has an empty boot directory - e.g. it looks like it doesn't have a kernel.

The last kernel in the archive https://archlinuxarm.org/packages/armv7h/linux-veyron is 3.14 - so really old.

So this suggests booting the latest armv7 kernel https://archlinuxarm.org/packages/armv7h/linux-armv7 but thats a modern 4.17.11, which would be used with device tree, but you would need to upgrade to this.

But you booted 4.14.52, and had the Rockchip RK3288 Tinker Board device tree.

The only way I can understand this is that you are still using the TinkerOS kernel.

Now this would cause a problem with modules $this->bbcode_second_pass_code('', '/usr/lib/modules') in the arch image you just have 3.14.0 and these won't load into 4.14.52. Now if you can't load modules, maybe you can't load the module needed for the wifi.

This would suggest copying the /usr/lib/modules for the TinkerOS.

I've grabbed a copy of that, I look at it when I get home ...
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm

Re: Asus TB S

Postby summers » Tue Jul 31, 2018 8:25 pm

$this->bbcode_second_pass_code('', '20170417-tinker-board-linaro-stretch-alip-v1.8.img') has a W95 FAT32 (LBA) (e.g. type "c") partiton, that must be what has the kernel in it. Let me see if I can mount though the loop back device.

It contains $this->bbcode_second_pass_code('', 'extlinux hw_intf.conf rk3288-miniarm.dtb zImage') don't know if all are needed, the dtb and zImage must be needed.

The modules are in a tad strange place, but on the second partition:

$this->bbcode_second_pass_code('', 'lib/modules/4.4.16-00006-g4431f98-dirty/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/8723bs.ko')

looks like what you need for wire less.

I'd be tempted to use arch lastest kernel, change into a zImage, and move into p1; and check you have the 8723bs.ko module.

In the main kernel, 8723bs is in the staging - e.g. its not yet in the main kernel:

https://github.com/torvalds/linux/tree/master/drivers/staging/rtl8723bs
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm

Re: Asus TB S

Postby TheSaint » Wed Aug 01, 2018 5:27 am

Always thank you, for your kind interest on the matter
I got a try with the armbian kernel, that's look pretty similar. But if you prefer to keep the investigations on Linaro, I might go back to that installation.
Anyway both kernels can use the RTL8723BS. I presume then those kernel are looking in a different path and load the correct firmware. For example Armbian has the firmware in /system/etc/firmware.
Well I don't know what dictate the path where the kernel will look into. I'm trying with that directory copied ;)
I got bad, I messed something up (partition name I think) and it doesn't any longer.

I've tried several attempt to use my laptop for internet sharing, but I don't get the grip to make it work. Perhaps the TB NIC doesn't work properly. The laptop is ready with dnsmasq, but is not working. Maybe I should widen the range, but it seems it is already set.

I'm prepared to compile a kernel, but I going to write a new discussion.

EDIT
I got the config.gz from the DietPI installation.
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: Asus TB S

Postby summers » Wed Aug 01, 2018 9:52 am

I'd be tempted to try the default armv7 kernel from arch first:

https://archlinuxarm.org/packages/armv7h/linux-armv7

Its has most things defined as modules, e.g. the RTL8723BS :

https://archlinuxarm.org/packages/armv7h/linux-armv7/files/config

I think the one gotca, is that from what I can see the device tree for the tinkerboard I suspect will get called rk3288-tinker.dtb; but the FAT partition had a device tree called rk3288-miniarm.dtb. Now that looks non standard to me, but should still work. Hassle is that the name of the device tree will be specified in uboot - so unless you can redirect that you'll need to use the rk3288-miniarm.dtb.
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm

Re: Asus TB S

Postby TheSaint » Wed Aug 01, 2018 11:36 am

So I presume that I should to compile the kernel with the Wifi included, if it's possible. Later I may adjust the steering in the right direction.
Just figure that's all to be learned :oops:
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 31 guests