User Tools

Site Tools

한국어

comfilepi:raspbian:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
comfilepi:raspbian:index [2019/01/03 09:14]
COMFILE Technology [Differences from Original Raspbian Distribution]
comfilepi:raspbian:index [2024/03/15 09:46] (current)
COMFILE Technology [Bullseye]
Line 1: Line 1:
 +====== Raspberry Pi OS ======
  
 +We recommend using the latest OS image to ensure you have the latest bug fixes and features released by the upstream repositories. ​ After booting the OS, the software packages can be further updated to the most recent releases of the day by running ''​sudo apt update && sudo apt full-upgrade''​ in a terminal.
 +
 +===== Bullseye =====
 +
 +^  OS Image Download Link                                                                                                         ​^ ​ Date Released ​    ​^ ​ Supported Models ​                   ^  Word Size  ^  Release Notes and Checksum ​                     ^
 +| [[https://​downloads.comfiletech.com/​ComfilePi/​OSDown/​CPi_Bullseye_ENG_20240229_64bit.zip| ComfilePi Raspberry Pi OS 20240229]] ​ | February 29, 2024  | CPi-A, CPi-B, CPi-C, CPi-F, & CPi-S  |  64-bit ​    | [[.:Release Notes:​|Release Notes and Checksum]] ​ |
 +| [[https://​downloads.comfiletech.com/​ComfilePi/​OSDown/​CPi_Bullseye_ENG_20230904_64bit.zip| ComfilePi Raspberry Pi OS 20230904]] ​ | September 4, 2023  | CPi-A, CPi-B, CPi-C, CPi-F, & CPi-S  |  64-bit ​    | [[.:Release Notes:​|Release Notes and Checksum]] ​ |
 +| [[https://​downloads.comfiletech.com/​ComfilePi/​OSDown/​CPi_Bullseye_ENG_20230710_64bit.zip| ComfilePi Raspberry Pi OS 20230710]] ​ | July 10, 2023      | CPi-A, CPi-B, CPi-C, CPi-F, & CPi-S  |  64-bit ​    | [[.:Release Notes:​|Release Notes and Checksum]] ​ |
 +| [[https://​downloads.comfiletech.com/​ComfilePi/​OSDown/​CPi_Bullseye_ENG_20230227_64bit.zip| ComfilePi Raspberry Pi OS 20230227]] ​ | February 27, 2023  | CPi-A, CPi-B, CPi-C, & CPi-S         ​| ​ 64-bit ​    | [[.:Release Notes:​|Release Notes and Checksum]] ​ |
 +| [[https://​downloads.comfiletech.com/​ComfilePi/​OSDown/​CPi_Bullseye_ENG_20221201_64bit.zip| ComfilePi Raspberry Pi OS 20221201]] ​ | December 1, 2022   | CPi-A, CPi-B, & CPi-C                |  64-bit ​    | [[.:Release Notes:​|Release Notes and Checksum]] ​ |
 +
 +[[comfilepi:​raspbian:​os_archive:​index|OS Image Archive]]
 +
 +
 +The latest OS image above is preconfigured for the CPi-S070WR. ​ For other models, please replace the ///​boot/​config.txt//​ file with the appropriate model-specific one located in the ///boot// directory.
 +
 +The CPi-C070WR4C v2.0 [[comfilepi:​hardware_revisions:​index|hardware revision]] replaces the SMSC9512 10/100 Ethernet IC with CM4's 1Gbps Ethernet. ​ Therefore, if using an older OS with the CPi-C070WR4C v2.0 hardware, please remove the ''​dtoverlay=noeth''​ setting in the ///​boot/​config.txt//​ file to ensure the CM4's internal Ethernet is not disabled.
 +
 +
 +
 +===== Installation Instructions =====
 +
 +The installation procedure is the same as that used for the Raspberry Pi.  See "​Installing Images..."​ at the [[https://​www.raspberrypi.com/​documentation/​computers/​getting-started.html#​installing-the-operating-system|Raspberry Pi Installation Instructions]]. ​ Using the Raspberry Pi Imager, from the "​Choose OS" menu, select "Use Custom"​ and then browse the to the OS downloaded from the links above.
 +
 +When the OS is installed and booted for the first time, it will automatically expand the file system to take advantage of the specific model'​s entire storage capacity, and then reboot automatically. ​ Subsequent boots will boot directly to the desktop.
 +
 +==== Flashing the eMMC Over USB ====
 +
 +
 +  - Obtain a USB-Type-A-to-USB-Type-A cable and connect it between the CPi panel PC and your desktop PC using the "USB Device"​ port.
 +  - Turn on the CPi-xxxx panel PC.  Due to the USB cable being plugged into the USB Device port, it will automatically boot into a special mode allowing the eMMC to be flashed. ​ Nothing will appear on the screen though. ​ If it boots into the desktop, something is wrong. ​ If that happens check to ensure the cables are properly connected.
 +  - Once the ComfilePi is powered on, [[https://​github.com/​raspberrypi/​usbboot/​raw/​master/​win32/​rpiboot_setup.exe|download]],​ install, and then run the "​RPiBoot.exe"​ program on your desktop PC.  It will detect the ComfilePi and mount the eMMC as if it were an SD card (e.g. as a removable drive).
 +  - Once the eMMC is mounted as a removable drive, follow the normal procedure for flashing or backing up an OS image.
 +
 +<​html><​center><​iframe width="​800"​ height="​480"​ src="​https://​www.youtube.com/​embed/​jgmf54z3sUo"​ title="​ComfilePi emmc install"​ frameborder="​0"​ allow="​accelerometer;​ autoplay; clipboard-write;​ encrypted-media;​ gyroscope; picture-in-picture;​ web-share"​ allowfullscreen></​iframe></​center></​html>​
 +
 +See the [[https://​www.raspberrypi.com/​documentation/​computers/​compute-module.html#​flashing-the-compute-module-emmc|Raspberry Pi eMMC Flashing Instructions]] for more information.
 +
 +
 +
 +==== Booting from a USB Drive to Flash the eMMC on the CPi-C/F/S ====
 +
 +The CPi-C, CPi-S, and CPi-F panel PCs built around the Raspberry Pi Compute Module 4 and Compute Module 4S respectively have a different bootloader providing the ability to boot from USB out of the box.  Leveraging that feature, it is now possible to boot from a utility operating system, and from there flash the eMMC locally. ​ With that method, it is no longer necessary to connect the panel PC to a separate PC via a USB-A-to-USB-A cable, and flashing the eMMC is also **//​much//​** faster.  ​
 +
 +It is also possible to automate the Raspberry Pi Imager using it's command line interface. ​ Run the command ''​rpi-imager --cli''​ in a terminal window for onscreen help.
 +
 +<​html><​center><​iframe width="​800"​ height="​480"​ src="​https://​www.youtube.com/​embed/​2ooBcTkZjzc"​ title="​ComfilePi emmc install"​ frameborder="​0"​ allow="​accelerometer;​ autoplay; clipboard-write;​ encrypted-media;​ gyroscope; picture-in-picture;​ web-share"​ allowfullscreen></​iframe></​center></​html>​
 +
 +
 +Procedure:
 +  - From a workstation PC, use the Raspberry Pi Imager to create a utility OS on a USB drive (or use an SD card mounted in a USB SD card reader). ​ Be sure to update the /​boot/​config.txt file with the model-specific one in the /boot directory. ​ The OS images downloadable from the links above can be used as the utility OS.
 +  - If using one of the OS images linked above, boot from the USB once to ensure the root file system is expanded to make room for the OS images in the next step.  Shut down after successfully booting once from the USB drive and then continue on to the next step.
 +  - Copy the OS image that will be flashed to the eMMC to the utility OS's ''​~/​Downloads''​ directory. ​ Since Windows does not have the ability to read from and write to Linux file systems, you may want to use a Linux PC for this step.  Since the ComfilePi is simply a Linux PC, you could plug your USB drive into a separate ComfilePi panel PC and use it to copy your OS image to the USB drive. ​ Or, if the OS image is stored on a server, you can always use a ''​wget''​ or ''​curl''​ to download the OS image from the server to the USB drive'​s ''​~/​Downloads''​ directory.
 +  - On the CPi-C/F/S panel PC, if the eMMC already has an OS installed, make the eMMC unbootable so it will fail to boot from the eMMC and attempt to boot from USB instead.. ​ Run the commands ''​sudo mkdir /​boot/​temp''​ followed by ''​sudo mv /​boot/​start*.elf /​boot/​temp''​. ​ It is also possible to [[https://​www.raspberrypi.com/​documentation/​computers/​raspberry-pi.html#​raspberry-pi-4-bootloader-configuration|change the bootloader'​s configuration]] to attempt to boot from USB first, but we'll assume the default bootloader configuration.
 +  - Reboot the panel PC and verify that it can no longer boot from the eMMC.
 +  - Plug in the USB drive created in step 1 into one of the panel PC's USB host ports, and the panel PC should immediately boot from it.
 +  - Once booted from the USB drive, use the Raspberry Pi Imager to flash the eMMC.
 +  - Reboot to boot from the eMMC.
 +
 +In the USB drive'​s utility OS, if you want to change the Raspberry Pi Imager program to not require password input, as shown in the video, then open the file ''/​usr/​share/​applications/​rpi-imager.desktop''​ and change the ''​Exec=rpi-imager''​ line to ''​Exec=sudo -E rpi-imager''​.
 +
 +It is also possible to flash the OS you want to install onto the USB drive (or USB SD card reader), boot off the USB drive, and then use the SD Card Copier program (Raspberry Pi Menu --> Accessories) to copy the USB drive to the eMMC.  However, the USB drive (or SD card mounted in the USB SD card reader) must be smaller in capacity than the eMMC.
 +
 +**Important:​** ​ It is possible to configure a Compute Module 3 for USB booting by modifying the OTP memory, however, that has an unfortunate side effect of disabling it's ability to boot into the USB device mode for programming the eMMC.  So please do not attempt to modify the Compute Module 3's OTP memory to enable USB booting, or you may not be able to program the eMMC again and will need to replace the Compute Module.
 +
 +
 +
 +<​html><​!--
 +
 +==== Flashing the eMMC or SD Card Using the Raspberry Pi Provisioning Software ====
 +
 +Raspberry Pi Ltd. has also made available [[https://​github.com/​raspberrypi/​cmprovision|the Raspberry Pi Compute Module Provisioning software]] that can be used to flash multiple ComfilePi panel PCs simultaneously from a web program that can run on a generic Raspberry Pi or one of our ComfilePi panel PCs operating as a server.
 +
 +If using a ComfilePi as the server, use a USB WiFi dongle to provide wireless connectivity to the provisioning software from another workstation PC, or run the provisioning software locally through the ComfilePi server'​s web browser.
 +
 +=== For CPi-C Panel PCs ===
 +
 +For CPi-C panel PCs, use the server'​s Ethernet port through a switch to provision multiple CPi-C panel PCs simultaneously through a network boot.  By default the bootloader will attempt the eMMC/SD card, followed by USB boot, and then network boot.  Therefore, with this method, you must first make the eMMC/SD card unbootable for the network boot to download OS images from the server.
 +
 +The server'​s Ethernet port (eth0) must be manually configured to an IP address of 172.20.0.1 with a subnet mask of 255.255.0.0.
 +
 +{{ :​comfilepi:​raspbian:​cpi-c-provisioning.png?​900 }}
 +
 +=== For CPi-A/B/F/S Panel PCs ===
 +
 +For CPi-A/B/F/S panel PCs, connect the server to each panel PC to be provisioned over USB.  Connect the server'​s host USB port to the panel PC's USB device port using a USB-A-to-USB-A cable. ​ Use a USB hub to provision multiple panel PCs simultaneously.
 +
 +When a ComfilePi panel PC is connected to the server via USB, a new virtual Ethernet device (usb0) will appear on the server. ​ It's IP6 address must be manually configured to fe80::​f800:​5fff:​fefa:​7607 with a prefix of 1.
 +
 +{{ :​comfilepi:​raspbian:​cpi-s-provisioning.png?​900 }}
 +
 +--></​html>​
 +===== Replacing the pi User =====
 +
 +The default user is //pi// and the default password is //​raspberry//​. ​ To replace the //pi// user, use the [[https://​www.raspberrypi.com/​software/​|Raspberry Pi Imager]], press the gear icon and set a new username and password in the //Advance Options// screen before writing the OS to the SD card or eMMC.
 +
 +{{ :​comfilepi:​raspbian:​replace_user_gear.png?​500 }}
 +
 +{{ :​comfilepi:​raspbian:​replace_user_password.png?​500 }}
 +
 +===== Creating an OS Image for Backup and/or Cloning =====
 +
 +Most likely users will want to customize their OS by changing settings and adding/​remove software to customize the ComfilePi panel PC to their needs. ​ [[https://​sourceforge.net/​projects/​win32diskimager/​|Win32DiskImager]] can be used to //Read// an SD card or eMMC disk to an image file (.img) for cloning other ComfilePi panel PCs.
 +
 +{{ :​comfilepi:​raspbian:​custom_os_image_backup.png }}
 +
 +
 +===== Source Code =====
 +
 +Source code for appropriately licensed software can be obtained by executing ''​apt source {package_name}''​ on the ComfilePi.
 +
 +<​html><​!--
 +  * From our [[ftp://​110.10.189.172/​ComfilePi/​Raspbian/​Source/​|FTP site]].
 +  * Through our [[copyleft_written_offer:​index|written offer]].
 +--></​html>​
 +
 +[[comfilepi:​index|ComfilePi - Industrial Raspberry Pi Panel PC]]