device-farm / cli

0 stars 0 forks source link

Problem with install command #3

Open JoshSK opened 8 months ago

JoshSK commented 8 months ago

Hello,

first problem was with the missing wg.json - this was done manually. but now I freeze on:

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
> Installing U-BOOT SPL...
455+1 records in
455+1 records out
> Creating file systems...
mke2fs 1.46.4 (18-Aug-2021)
The file /build/host/dev/sdhp1 does not exist and no size was specified.
Done.

Thanks

burgrp commented 8 months ago

Hi, please send me the complete command line. I will try to reproduce the problem. The command line should contain correct device ID.

JoshSK commented 8 months ago

Im trying to build new image for the Nanopi duo2 because my old nanopi duo burned. Issue with the block device and wg.json was solved on another host computer where was the sdcard recognized as device "mmcblk0".

When I trying to build image for the "Custom build" board, this error stops me Error: You need to specify installer by --installer option. used install command is: sudo defa install ch6v9o71 /dev/mmcblk0 --wifi=xx:yy --dto $PWD/dto

EDIT: I trying to create Custom build because the device id ltu3hgsz for nanopi duo doesnt recognize the wlan adapter wlan0 ...Cannot find device "wlan0" Device "wlan0" does not exist. ifup: failed to change interface wlan0 state to 'up'

burgrp commented 8 months ago

I see. For the "custom build" you always need to specify the installer image, which can be either your own or some of those few we build: https://github.com/orgs/device-farm/packages

For example: --installer ghcr.io/device-farm/nanopi-duo:docker

In case you need a help with setting up the wifi in your device, let me know.

JoshSK commented 8 months ago

If it is easier to modify the existing nanopi-duo image for use on the nanopi duo2 board (compared to a custom build), it would be very helpful for me.

burgrp commented 8 months ago

That would be difficult. The problem is that nanopi-duo uses the crappy WiFi chip which needs xr819 linux driver, which in turn needs old kernel, hence the fixed version here: https://github.com/device-farm/image-builder/blob/main/layers/nanopi-duo/%5BLINUX_VERSION%5D Nanopi-duo2 uses AP6210 chip which needs to be compiled-in. So there is no way to use duo image as it is.

I want to add a support for duo2 anyway, so I'm going to order the board and will add the image. I will post a message here as soon as the image is ready.