Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
raspberry-pi:ipfire-on-rpicm4 [2023/09/28 16:28] – created Zyzonix | raspberry-pi:ipfire-on-rpicm4 [2025/04/13 12:02] (current) – [Adjusting Interfaces (MAC Addresses) (important!)] Samsoneko | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Install IPFire on Raspberry Pi CM4 on DFRobot Carrier Board ===== | + | ====== Install IPFire on a Raspberry Pi CM4 on DFRobot Carrier Board over Serial Console |
+ | |||
+ | {{ : | ||
+ | This tutorial covers how to install a [[https:// | ||
+ | |||
+ | |||
+ | // | ||
+ | <callout type=" | ||
+ | |||
+ | → IPFire' | ||
+ | |||
+ | → And the DFRobot' | ||
+ | |||
+ | ===== Preparation / Requirements ===== | ||
+ | * SD-Card (32 GB) + SD-Card-Reader | ||
+ | * Raspberry Pi Compute Module 4 (4GB RAM recommended) | ||
+ | * Jumper Wires (Female to Female) | ||
+ | * Official Raspberry Pi USB-C Powersupply (CM4 requires 5V **3A**!) | ||
+ | * Configured and running Raspberry Pi (either with SSH-access or working display output) | ||
+ | |||
+ | //Depending on your Setup:// | ||
+ | * // | ||
+ | * // | ||
+ | * //or USB2TTL Apdapter// | ||
+ | |||
+ | ===== Download and flash the Image to the SD-Card ===== | ||
+ | |||
+ | Download the '' | ||
+ | Then flash the Image on another computer to the SD-Card. Therefore you can use [[https:// | ||
+ | |||
+ | <callout type=" | ||
+ | * **The compressed IMG is required, the ISO image will not work!** | ||
+ | * If experiencing boot issues when using newer hardware revisions have a look at the official IPFire wiki: [[https:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | Before ejecting the SD-Card perform the following changes: | ||
+ | |||
+ | → Enable the serial console: add (if not present) '' | ||
+ | |||
+ | |||
+ | → Check if '' | ||
+ | |||
+ | |||
+ | ===== Connect both Pi's with jumper cables ===== | ||
+ | {{ : | ||
+ | {{ : | ||
+ | Now connect the following pins on your carrier board' | ||
+ | <WRAP 40%> | ||
+ | ^ Carrier Board (CM4) ^ 2nd Raspberry Pi / USB2TTL | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | </ | ||
+ | |||
+ | When connected properly you can power up the carrier board. | ||
+ | |||
+ | (It is recommended to first power up the second Pi and start the serial console before powering up the carrier board.) | ||
+ | |||
+ | |||
+ | //Images sourced from [[https:// | ||
+ | |||
+ | |||
+ | ===== Open serial console using screen ===== | ||
+ | Before you can open a serial connection: serial console must also be enabled on the Pi from which you wish to connect. Therefore check if your ''/ | ||
+ | |||
+ | <callout type=" | ||
+ | When using a Raspberry Pi with bluetooth as second device also add the following lines to your '' | ||
+ | <code bash> | ||
+ | # disable bluetooth via uart | ||
+ | dtoverlay=pi3-disable-bt | ||
+ | dtoverlay=pi3-miniuart-bt | ||
+ | dtoverlay=disable-bt | ||
+ | dtoverlay=miniuart-bt | ||
+ | </ | ||
+ | This will disable the bluetooth module, because this may break your serial connection as it also uses the uart console. | ||
+ | |||
+ | In general there might be issues with the serial connection, it's recommended to firstly open the serial console on the second Pi and then booting up the CM4. Additionally **do not** dis- and reconnect to a running console session, otherwise your console might not be readable anymore for this session. | ||
+ | </ | ||
+ | |||
+ | Then you can execute the follwing command from the second Pi to connect to your serial console. **It's strongly recommended to use a local attached keyboard and monitor on a Pi that boots to CLI(!) rather than creating the serial connection via SSH / Desktop.** | ||
+ | <code bash> | ||
+ | (root-permission required!) | ||
+ | → you might install '' | ||
+ | <code bash> | ||
+ | If ''/ | ||
+ | |||
+ | Finally perform the setup of IPFire as usual! | ||
+ | |||
+ | With '' | ||
+ | |||
+ | ===== Select correct boot method ===== | ||
+ | |||
+ | When booting for the first time, there will be three entries in the grub bootloader. | ||
+ | |||
+ | **Select the 3rd option, that contains '' | ||
+ | |||
+ | ===== Adjusting Interfaces (MAC Addresses) (important!) ===== | ||
+ | |||
+ | As described also in this [[https:// | ||
+ | |||
+ | |||
+ | It's also recommended to completely shut down again and reboot to verify the changes! | ||
+ | |||
+ | ---- | ||
+ | |||
+ | //Resources used: [[https:// |