https://github.com/inindev/radxa-e25
debian arm64 linux for the radxa e25
https://github.com/inindev/radxa-e25
Last synced: 7 months ago
JSON representation
debian arm64 linux for the radxa e25
- Host: GitHub
- URL: https://github.com/inindev/radxa-e25
- Owner: inindev
- License: gpl-3.0
- Created: 2023-08-07T12:21:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-28T12:17:59.000Z (over 2 years ago)
- Last Synced: 2025-01-18T06:13:23.791Z (over 1 year ago)
- Language: Shell
- Size: 125 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# radxa-e25
#### *Debian ARM64 Linux for the Radxa E25*
This Debian ARM64 Linux image is built directly from official packages using the Debian [Debootstrap](https://wiki.debian.org/Debootstrap) utility, see: https://github.com/inindev/radxa-e25/blob/main/debian/make_debian_img.sh#L126
Most patches are directly available from the Debian repos using the built-in ```apt``` package manager, see: https://github.com/inindev/radxa-e25/blob/main/debian/make_debian_img.sh#L355-L365
* Note: The kernel in this bundle is from kernel.org and will not get updates from debian.
The serial console is on uart3:
```
pin 3: rx
pin 5: tx
pin 9: ground
```
---
### debian bookworm setup
**1. download image**
```
https://github.com/inindev/radxa-e25/releases/download/v12.0.2/radxa-e25_bookworm-1202.img.xz
```
**2. determine the location of the target micro sd card**
* before plugging-in device
```
ls -l /dev/sd*
ls: cannot access '/dev/sd*': No such file or directory
```
* after plugging-in device
```
ls -l /dev/sd*
brw-rw---- 1 root disk 8, 0 Apr 10 15:56 /dev/sda
```
* note: for mac, the device is ```/dev/rdiskX```
**3. in the case above, substitute 'a' for 'X' in the command below (for /dev/sda)**
```
sudo sh -c 'xzcat radxa-e25_bookworm-1202.img.xz > /dev/sdX && sync'
```
#### when the micro sd has finished imaging, eject and use it to boot the radxa e25 to finish setup
**4. login account**
```
user: debian
pass: debian
```
**5. take updates**
```
sudo apt update
sudo apt upgrade
```
**6. create account & login as new user**
```
sudo adduser youruserid
echo ' ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/
sudo chmod 440 /etc/sudoers.d/
```
**7. lockout and/or delete debian account**
```
sudo passwd -l debian
sudo chsh -s /usr/sbin/nologin debian
```
```
sudo deluser --remove-home debian
sudo rm /etc/sudoers.d/debian
```
**8. change hostname (optional)**
```
sudo nano /etc/hostname
sudo nano /etc/hosts
```
---
### building debian bookworm arm64 for the radxa e25 from scratch
The build script builds native arm64 binaries and thus needs to be run from an arm64 device such as a odroid m1 running a 64 bit arm linux. The initial build of this project used a debian arm64 odroid m1, but now uses a rock 5b running debian trixie arm64.
**1. clone the repo**
```
git clone https://github.com/inindev/radxa-e25.git
cd radxa-e25
```
**2. run the debian build script**
```
cd debian
sudo sh make_debian_img.sh
```
* note: edit the build script to change various options: ```nano make_debian_img.sh```
**3. the output if the build completes successfully**
```
mmc_2g.img.xz
```