simplify mkusb.sh

This commit is contained in:
2024-01-16 18:17:27 +01:00
parent 9fdb7c86ca
commit 370896170a
3 changed files with 38 additions and 49 deletions

View File

@ -95,9 +95,9 @@ it is a matter of convenience. In this case omit ``| pv `` in the commands
## install image by means of an USB stick
## install image by means of the USB stick BOOT_TINY
The stick has TinyLinux and on it and some additional scripts
The stick has TinyLinux on it and some additional scripts
If you do not have one, you may create it logging to an other box as root
@ -105,13 +105,11 @@ If you do not have one, you may create it logging to an other box as root
to verify that /dev/sdb is your stick, use the following command before and after plugging the stick
```
apu> ls /dev/sdb
```
apu> cd aputools
apu> bash mkusb.sh
copy the stick image to the stick (32 GB should be enough)
... you are asked to give the device name from a list (typically sdb) ...
```
mac> dd if=apuinstall.lz4 bs=512k | pv | ssh root@<ip or hostname> "lz4 -d | dd of=/dev/sdb bs=512k"
```
### b) mount with TinyLinux from USB stick
@ -125,7 +123,7 @@ mac> screen /dev/tty.usbserial-130 115200
Do not yet connect LAN, plug USB stick and start the box, wait for prompt 'tc@box:'
```
apu> cd /media/CENTOS7_APU (or /media/CENTOS_APU)
apu> cd /media/BOOT_TINY (or /media/CENTOS_APU)
apu> sh reg
```
@ -145,6 +143,9 @@ Use the displayed ip address for the following step.
### c) Copy Image to APU SSD
Note that the images are not part of the git repo.
```
mac> cd ~/switchdrive/apu/images
mac> dd if=apumaster.lz4 bs=512k | pv | ssh root@192.168.1.43 "lz4 -d | dd of=/dev/sda bs=512k"