Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

This article is intended to provide information for HoneyComb and ClearFog CX to start evaluating the platform as quickly as possible.

...

Flashing Ubuntu on NVME m.2 or SATA drive

Preparing a bootable micro SD

Download a pre-built snapshot image from https://images.solid-run.com/LX2k/lx2160a_build

Those images are built with the suffix of the commit ID of the https://github.com/SolidRun/lx2160a_build  project that you can clone and build by yourself.

Info

Please note

The prebuilt images are configured for SO-DIMM DDR4 with speed of 3200, 2900, 2600 and 2400 Mtps (with or without ECC support),. Images that have the prefix lx2160a_xspi are intended to be flashed into SPI and recommended for later use after being booted from micro SD

You can build your own image using the script in here – https://github.com/SolidRun/lx2160a_build

...

Code Block
unxz lx2160acex7_2000_700_....img.xzsudo dd if=lx2160acex7_2000_700_...img of=/dev/sdX

Booting the micro SD and flashing to either eMMC, NVME M.2 or SATA drive

Plug a micro USB cable to the ‘console’ micro USB connector and run a terminal emulator like minicom or putty pointing to the USB tty running at 115200,8N1.

...

Code Block
load mmc 0:1 0xa4000000 ubuntu-core.imgimgmmc mmc dev 1
mmc1mmc write 0xa4000000 0 0xd2000

...

Code Block
load mmc 0:1 0xa4000000 ubuntu-core.img
nvme scan
nvmeimgnvme scannvme write 0xa4000000 0 0xd2000

...

...

 

To flash the image into SATA drive run the following commands (it will wipe your data) –

Code Block
load mmc 0:1 0xa4000000 ubuntu-core.img
scsi reset
scsiimgscsi resetscsi write 0xa4000000 0 0xd2000

Final stages

Boot the machine by running ‘boot’ in u-boot.

Ubuntu username and password are ‘root’ and ‘root’.

Note

Please note

If you are willing to use a similar image in production you must change this password, or completely disable root login.

The following stages needs to be done in order to finalize the imaging –

...

Code Block
dynamic_dpl.sh dpmac.10export DPRC=dprc.2<span style="font-size: 11.2px;">testpmd -c 0x3 -n 1 -- --txd=1500 -iset fwd txonlyset txpkts 1500show port info 0show config txpktsstart</span>

GPUs

GPUs that were briefly tested –

...

Code Block
 apt install btrfs-progs mkfs.btrfs /dev/nvme0n1p1 mount /dev/nvme0n1p1 /mnt cd /mnt# change 20200609 with what's available here http://distfiles.gentoo.org/experimental/arm64/ wget http://distfiles.gentoo.org/experimental/arm64/stage3-arm64-20200609.tar.bz2 mount --rbind /dev dev mount --make-rslave dev mount -t proc /proc proc mount --rbind /sys sys mount --make-rslave sys mount --rbind /tmp tmp cp /etc/resolv.conf etc chroot . /bin/bash env-update && . /etc/profile emerge-webrsync emerge superadduser openssh vim# Set the root password passwd # enable root login vim /etc/ssh/sshd_config # or create your user superadduser your_user ln -s /etc/init.d/net.{lo,eth0} rc-update add sshd default reboot

Info

Please note

– If you need to install the Gentoo to the SATA change the /dev/nvme0n1p1 to /dev/sdx.
– In the same way, can install Debian or another Linux arm64 distribution.

Info

Please note


– The default bootcmd probes every device and looks for a /extlinux/extlinux.conf

...

– The kernel command line uses the PARTUUID to boot the right drive
can editing the root in the extlinux.conf to use directly root=/dev/nvme0n1p1 or  root=/dev/sdx .