Skip to content
  • Категории
  • Главная
  • Документация
  • Последние
  • Пользователи
Collapse
  1. Главная
  2. Raspberry Pi
  3. Не могу изменить загрузчик RPi OS

Не могу изменить загрузчик RPi OS

Запланировано Прикреплена Закрыта Перенесена Raspberry Pi
3 Сообщения 1 Posters 133 Просмотры
  • Сначала старые
  • Сначала новые
  • По количеству голосов
Авторизуйтесь, чтобы ответить
Эта тема была удалена. Только пользователи с правом управления темами могут её видеть.
  • piP Не в сети
    piP Не в сети
    pi
    написал в отредактировано pi
    #1

    Всем привет. Нужна помощь.
    Суть проблемы в том, что при использовании CM4 я имею возможность произвести полное копирование флешки на m.2 ssd и загружаться без помощи флешки. Но незадача в том, что для того, чтоб это сделать, нужно отредактировать файл загрузчика, добавив цифру "6" в конце параметра BOOT_ORDER данной командой

    sudo -E rpi-eeprom-config --edit
    

    Вот ссылка на статью, как это сделать https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#nvme-ssd-boot
    Суть в том, что отредактировать файл можно и он вроде как сохраняется, но при выходе из редактора вылазит ошибка с фразой "Не возможно перезаписать данный файл". О пытается перезаписаться в папке TEMP, но вызалит неведомая ошибка, приложу скрин. В документации написано, что файл загрузчика вообще по идеи должен лежать тут: recovery/boot.conf хотя по факту этой папки вообще не существует
    Я уже запутался и не знаю как мне все таки изменить этот файл, записать его и записать в какой именно папке.

    Что уже сделано:
    Обновлена система и обновлено ядро
    Описание

    1 ответ Последний ответ
    0
    • piP Не в сети
      piP Не в сети
      pi
      написал в отредактировано pi
      #2

      @Suetology#6757 вызалит неведомая ошибка,

      А где текст ошибки? На скриншоте ничего подозрительного не углядел...

      1 ответ Последний ответ
      0
      • piP Не в сети
        piP Не в сети
        pi
        написал в отредактировано pi
        #3

        @sv-lary#6758
        Описание
        rpi-eeprom-обновление по умолчанию не включено на CM4. Запустите с -h для получения дополнительной информации.


        Вот что он пишет на это:

        pi@sueta:~ $ sudo -E rpi-eeprom-config -h
        usage: rpi-eeprom-config [-h] [-a APPLY] [-c CONFIG] [-e] [-o OUT] [eeprom]
        
        Bootloader EEPROM configuration tool for the Raspberry Pi 4.
        Operating modes:
        
        1. Outputs the current bootloader configuration to STDOUT if no arguments are
           specified OR the given output file if --out is specified.
        
           rpi-eeprom-config [--out boot.conf]
        
        2. Extracts the configuration file from the given 'eeprom' file and outputs
           the result to STDOUT or the output file if --output is specified.
        
           rpi-eeprom-config pieeprom.bin [--out boot.conf]
        
        3. Writes a new EEPROM image replacing the configuration file with the contents
           of the file specified by --config.
        
           rpi-eeprom-config --config boot.conf --out newimage.bin pieeprom.bin
        
           The new image file can be installed via rpi-eeprom-update
           rpi-eeprom-update -d -f newimage.bin
        
        4. Applies a given config file to an EEPROM image and invokes rpi-eeprom-update
           to schedule an update of the bootloader when the system is rebooted.
        
           Since this command launches rpi-eeprom-update to schedule the EEPROM update
           it must be run as root.
        
           sudo rpi-eeprom-config --apply boot.conf [pieeprom.bin]
        
           If the 'eeprom' argument is not specified then the latest available image
           is selected by calling 'rpi-eeprom-update -l'.
        
        5. The '--edit' parameter behaves the same as '--apply' except that instead of
           applying a predefined configuration file a text editor is launched with the
           contents of the current EEPROM configuration.
        
           Since this command launches rpi-eeprom-update to schedule the EEPROM update
           it must be run as root.
        
           The configuration file will be taken from:
               * The blconfig reserved memory nvmem device
               * The cached bootloader configuration 'vcgencmd bootloader_config'
               * The current pending update - typically /boot/pieeprom.upd
        
           sudo -E rpi-eeprom-config --edit [pieeprom.bin]
        
           To cancel the pending update run 'sudo rpi-eeprom-update -r'
        
           The default text editor is nano and may be overridden by setting the 'EDITOR'
           environment variable and passing '-E' to 'sudo' to preserve the environment.
        
        See 'rpi-eeprom-update -h' for more information about the available EEPROM
        images.
        
        positional arguments:
          eeprom                Name of EEPROM file to use as input
        
        optional arguments:
          -h, --help            show this help message and exit
          -a APPLY, --apply APPLY
                                Updates the bootloader to the given config plus latest
                                available EEPROM release.
          -c CONFIG, --config CONFIG
                                Name of bootloader configuration file
          -e, --edit            Edit the current EEPROM config
          -o OUT, --out OUT     Name of output file
        pi@sueta:~ $ pi@sueta:~ $ sudo -E rpi-eeprom-config -h
        
        Bootloader EEPROM configuration tool for the Raspberry Pi 4.
        Operating modes:
        
        1. Outputs the current bootloader configuration to STDOUT if no arguments are
           specified OR the given output file if --out is specified.
        
           rpi-eeprom-config [--out boot.conf]
        
        2. Extracts the configuration file from the given 'eeprom' file and outputs
           the result to STDOUT or the output file if --output is specified.
        
           rpi-eeprom-config pieeprom.bin [--out boot.conf]
        
        3. Writes a new EEPROM image replacing the configuration file with the contents
           of the file specified by --config.
        
           rpi-eeprom-config --config boot.conf --out newimage.bin pieeprom.bin
        
           The new image file can be installed via rpi-eeprom-up-bash: pi@sueta:~: command not found
        date
           rpi-eeprom-update -d -f newimage.bin
        
        4. Applies a given config file to an EEPROM image and invokes rpi-eeprom-update
           to schedule an update of the bootloader when the system is rebooted.
        
           Since this command launches rpi-eeprom-update to schedule the EEPROM update
           it must be run as root.
        
           sudo rpi-eeprom-config --apply boot.conf [pieeprom.bin]
        
           If the 'eeprom' argument is not specified then the latest available image
           is selected by calling 'rpi-eeprom-update -l'. 
        
        1 ответ Последний ответ
        0

        • Войти

        • Нет учётной записи? Зарегистрироваться

        • Login or register to search.
        • Первое сообщение
          Последнее сообщение
        0
        • Категории
        • Главная
        • Документация
        • Последние
        • Пользователи